Missing touchcancel protections #554

Closed
wants to merge 1 commit into
from

Projects

None yet

4 participants

Contributor

When using preventDefault of touchevents in parallel event handlers
the touchcancel event doesn't always trigger, leaving the touch
events in an inconsistent state. This fixes two errors resulting
from this:

  • Phantom swipe events
  • NPE on singleTap trigger
@kpdecker kpdecker Missing touchcancel protections
When using preventDefault of touchevents in parallel event handlers
the touchcancel event doesn't always trigger, leaving the touch
events in an inconsistent state. This fixes two errors resulting
from this:

- Phantom swipe events
- NPE on singleTap trigger
0acd2b5

+1

rochal commented Aug 20, 2013

+1.

Without this fix I'm getting TypeError: 'undefined' is not an object (evaluating 'touch.el.trigger') at zepto.js.

In my case error is triggered when I try to tap on an element with click/touchstart handler attached using Backbone.

Owner

Fixed in 03e07e8

@madrobby madrobby closed this Nov 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment