Comments (3)
No reason it shouldn't that I know of. Just be aware that the Android
browser < 3.0 does not support SVG.
On Fri, Dec 6, 2013 at 6:41 AM, Mike Stoddart [email protected]:
Will this plugin work on SVG elements? Thanks
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/19
.
Bill Fisher
510.414.8771
http://fisherwebdev.com
from touchy.
I can successfully trap drag events for a SVG RECT element in my SVG DOM, but not for a G element. This works:
$('#background').bind('touchy-drag', function(evt, phase, $target, data) { // rect element
And this doesn't
$('#map').bind('touchy-drag', function(evt, phase, $target, data) { // group element
from touchy.
Also, pinching doesn't work using the XCode's iPhone simulator for me:
console.debug("Pinched phase: %o\tscale: %f", phase, data.scale);
evt.preventDefault();
evt.stopPropagation();
});
[Error] TypeError: 'undefined' is not an object (evaluating 'data.preventDefault.move')
handleGestureChange (jquery.touchy.js, line 363)
f (jquery.min.js, line 2)
dispatch (jquery.min.js, line 2)
h (jquery.min.js, line 2)
if (data.preventDefault.move) {
preventDefault is undefined at this line.
from touchy.
Related Issues (20)
- jQuery compatible 1.9/2.0 versions
- Event Bubbling HOT 4
- Touchy takes over events (or so I think) HOT 1
- Pinch and Drag within the same element HOT 1
- touchy-pinch on iPad not working for me HOT 9
- touch-swipe - Triggered only once HOT 1
- Click event HOT 1
- Images are missing in file drag-and-flick.html
- [enhancement] Add missing bower.json.
- 'touchy-pinch' event is not fired on Nokia
- sending 'touchy-drag' Events to PHP HOT 1
- Bug with velictyThresh (easy-swipe) in test-pages
- tap not working
- Touchy.js doesn't work with jQuery 1.5.2 HOT 1
- wrong event target with useDelegation=false HOT 8
- preventDefault should be optional HOT 2
- Rotate doesn't seem to work in latest version of Chrome on Android HOT 3
- handleGestureChange touches = event.touches, HOT 16
- Drag and longpress confict HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from touchy.