GithubHelp home page GithubHelp logo

Comments (3)

benmajor avatar benmajor commented on July 18, 2024

Sorry, that isn't the behaviour intended for singletap. It should be used only when you need to bind both events to an element.

Please bear in mind that doubletap really has no meaning outside the scope of the application, so if a user taps twice on an element we need to decide whether it should be classed as a doubletap, or two singletap events. In order to main portability, this issue won't be fixed.

If you need to some way to limit the number of times the user has tapped an element, I'd suggest that you use the tapstart and tapend events.

from jquery-touch-events.

eshangin avatar eshangin commented on July 18, 2024

Ok. It is your plugin so you can do any you want )

But actually I don't understand your explanation. In native Javascript we can bind to doubleclick event and there is no need to bind to the one click event at the same time. So singletap, doubletap should work the same I think.

from jquery-touch-events.

benmajor avatar benmajor commented on July 18, 2024

They do. You can bind to singletap and doubletap on the same element. In native JS if you don't bind to doubleclick, and simply bind to click, it will trigger twice for two clicks on the element, exactly the same as this plugin. For example, here's a jsFiddle demo > http://jsfiddle.net/VX82h/

from jquery-touch-events.

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.