Giter Site home page Giter Site logo

Comments (4)

mattbryson avatar mattbryson commented on May 19, 2024

The event model within the plugin was re-written with 1.3, so clearly something has broken there.

Would it be useful if you could register for both 1 and 2 finger swipes? The number of fingers then being reported in the event object? Then you could use just one instance for both.

Either way, ill look at what changed, but I won't be able to look into it for the next week, but ill see if I can sort it when im back.

Cheers

m.

from touchswipe-jquery-plugin.

machineroom avatar machineroom commented on May 19, 2024

Hi Matt. Exposing the number of fingers to the event object would be ideal. It would also allow future expansion to 3, 4?! fingers.

Cheers
James

from touchswipe-jquery-plugin.

mattbryson avatar mattbryson commented on May 19, 2024

Hi James,

Sorry for the delay, been pretty busy recently!

Ive added the value "all" to the fingers property. If this is set, then ANY combination of fingers triggers a swipe.
And now, all event handlers have the finger count passed to them. This means you can use the swipe handler to capture 1,2,3 finger swipes. See http://labs.skinkers.com/touchSwipe/demo/3-1_Any_finger_swipe.php for an example.

Cheers

m.

from touchswipe-jquery-plugin.

machineroom avatar machineroom commented on May 19, 2024

Works well, thank you!

from touchswipe-jquery-plugin.

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.