Comments (7)
This is the expected behaviour. If you need to prevent this in your application, you can adjust the doubletap_int
threshold. By default, it's set to 500ms, but obviously 250ms may be better if you're worried about users triple tapping elements.
Since the interval of 500ms is defaulted for good reason, this isn't an issue with the framework. You will need to handle / limit doubletap
events in your application.
from jquery-touch-events.
The interval is not the problem. You should add a setting called cooldown
which would be the time between allowed taps.
For example, if you had a cooldown
of 500ms, you couldn't use doubletap
until 500ms after the previous doubletap.
from jquery-touch-events.
OK, I had another comment about this issue the other week. I will add a cooldown setting as you suggest, rather than assuming users will handle this in their own code. Thanks for the suggestion.
from jquery-touch-events.
Great, thanks for the update. I think this is a problem that many people are facing, and the cooldown should solve that problem.
from jquery-touch-events.
OK, I have added in a cooling off period to doubletap
events, and the demo shows this to be working as expected:
http://ben-major.co.uk/jquery-mobile-events/
from jquery-touch-events.
Thanks, works 100x better already.
from jquery-touch-events.
Thanks for your positive words 👍
from jquery-touch-events.
Related Issues (20)
- Swipe Up/Down event.target is always the body element and not the element under the finder HOT 3
- not support jquery 3.3.1 HOT 9
- Event.data being lost when combining tap/tapstart/tapend HOT 5
- Pinch HOT 1
- How to enable the touch events on Surface Pro? HOT 13
- Delay between tap and alert()/confirm() HOT 3
- Bug (with fix): Bubbling (or fast) touch event can cause a single tap to always trigger a taphold due to hold_timer overwrite HOT 1
- TypeScript declaration file? HOT 1
- Not supporting jQuery 3.4.1 HOT 9
- Sliding range input right invokes swiperight HOT 14
- Angular 8 Support HOT 1
- Deprecated technique HOT 1
- Bug: Events can't be set on window or document
- Wrong swipe direction HOT 3
- Can't trigger long taps on Surface Pro HOT 8
- Webpack usage HOT 2
- Swipe event not working with touch screen in Microsoft Edge. HOT 4
- Not compatible with jQuery 3.6 HOT 3
- Setting the Threshold without the data-attribute HOT 1
- error thrown with missing firstTap 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 jquery-touch-events.