Git Product home page Git Product logo

jtap's People

Contributors

br0ken- avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jtap's Issues

easily invalid

referring to https://github.com/BR0kEN-/jTap/issues/4

code says, .on nativeEvent.end

// Coordinates, when event ends, should be the same as they were
// on start.
(
     eventData.pageX === eventData.event.pageX &&
     eventData.pageY === eventData.event.pageY
)

so your finger can not slip a pixel.
other libs use ~10px.

in effect, you get a pseudo-hover state on mobile without getting a tap event fairly often.

triggering a click does not trigger a tap

.. and triggering a tap does not trigger a click either

This is probably as intended. But it may be useful to add that to the description, because people may simply replace all 'click' handlers ( $(foo).on('click'... ) with 'tap' handlers, forgetting that somewhere in the application someone may be triggering the event by code ( $(foo).trigger('click'... ), which has to be replaced too, then, into $(foo).trigger('tap'... )

Tap Issues - have to double tap

Even with the online demo the first tap doesn't work sometimes. You have to tap again to trigger the tap. That has to be a bug because it's frustrating user experience.

easily invalid

when after I touch,I just move a little bit,then it become invalid usually

undelegate

Я вешаю событие tap
$('body').delegate('.right', 'tap', fun);

как сделать undelegate ?

У меня сайт с ajax подгрузкой страниц и скриптов.

$('body').undelegate('.right', 'tap');
$('body').delegate('.right', 'tap', fun);
$('body').undelegate('.right', 'tap');
$('body').delegate('.right', 'tap', fun);

fun вызовет 2 раза

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.