Comments (4)
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.
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.
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.
Works well, thank you!
from touchswipe-jquery-plugin.
Related Issues (20)
- Version number is incorrect HOT 2
- Touchswipe interfering with html widget calendar date picker?
- Uses Passive Event Listeners to Improve Scrolling Performance HOT 4
- Uncaught TypeError: $(...).swipe is not a function HOT 3
- Package json "licenses" field uses invalid format, use SPDX expressions instead HOT 1
- hold not firing after longTapThreshold is reached
- carousel bootstrap swipe touch with include slider file to master page
- Uncaught TypeError: ((n.event.special[g.origType] || {}).handle || g.handler).apply is not a function
- non-standard property "zoom" HOT 1
- What is the best way to remove a swipe handler from a page?
- On swipe is phase end not firing
- Ignored attempt to cancel a touchmove event with cancelable=false
- Need help to disable horizontal swiping, please
- minified version doesn't correspond
- Moving range slider right, invokes swiperight HOT 1
- Adding Class To Dom HOT 1
- triggerOnTouchLeave on Android gets script stuck HOT 1
- j
- yos
- How to hang an event on new DOM elements
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 touchswipe-jquery-plugin.