Giter Site home page Giter Site logo

swipe events getting skipped about touchy HOT 4 CLOSED

Ericson578 avatar Ericson578 commented on August 23, 2024
swipe events getting skipped

from touchy.

Comments (4)

fisherwebdev avatar fisherwebdev commented on August 23, 2024

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.

Ericson578 avatar Ericson578 commented on August 23, 2024

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.

fisherwebdev avatar fisherwebdev commented on August 23, 2024

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.

Ericson578 avatar Ericson578 commented on August 23, 2024

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)

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.