Comments (4)
Hi Ericson578,
I've created a test page here:
http://hotstudio.github.com/touchy/test-pages/swipe.html
which is aliased here:
http://goo.gl/hSLPV
I can't seem to recreate your alternating bug on that test page. The swipe event fires every time. I'm testing it with an iPod Touch, running 5.1.1. Please test it with your device and let me know if you are still seeing the bug.
Thanks!
from touchy.
Thanks for setting that up. You're right, I can't reproduce the bug on your test code. The only difference that is immediately apparent is I used bind instead of on, and my code has several absolutely positioned divs. I'll let you know if I figure out what was causing the issue.
from touchy.
If you take a look at the comments at the bottom of my code (https://github.com/HotStudio/touchy/blob/master/test-pages/swipe.html) for that test page, you'll see that I was experiencing a similar issue with jQuery's toggle() method, while trying to use the native touchstart (not Touchy) event for the "easy swipe" button. I didn't take the time to figure out if that was my bug or something deeper in jQuery. I just wrote my own toggle function instead. Are you using toggle? Just a thought.
from touchy.
turns out it was my fault. I was using an alert to let me know when a swipe was detected, and that's what was causing the next swipe not to get detected.
turned off the alerts and used a method similar to your $logger and the swipe detection worked perfect! Thanks for your help :)
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
- Will this plugin work on SVG elements? HOT 3
- [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.