Giter Site home page Giter Site logo

Comments (3)

fisherwebdev avatar fisherwebdev commented on August 23, 2024

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.

stodge avatar stodge commented on August 23, 2024

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.

stodge avatar stodge commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.