Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE click delay #20

Open
wkeese opened this issue Apr 15, 2014 · 1 comment
Open

IE click delay #20

wkeese opened this issue Apr 15, 2014 · 1 comment
Assignees

Comments

@wkeese
Copy link
Member

wkeese commented Apr 15, 2014

(I mentioned this as a comment in google doc, but adding here before I forget.)

Dpointer has code to eliminate the 300ms click delay on webkit (i.e. platforms supporting touchstart/touchend), but IIUC not for IE10 or IE11.

I didn't try personally, but @edurocher wrote how IE also has a click delay, so please doublecheck if this is working w/out a delay.

@seb-pereira
Copy link
Member

As a rule of thumb, the click delay occurs when the default action is handled by the browser. In other words, the click delay is suppressed when the application cancels the default action.

Here is what happens when you touch the screen on IE10+ (with Pointer Event). This is just an observation because the click behavior is not part of the Pointer Events specification:

  • there is a delay if touch-action on the target element determines that the browser handles the default action (that is the default behavior and is equivalent to set touch-action=auto).
  • The delay is suppressed when you specify touch-action=none.
  • touch-action=pan-y
    • It lets the browser handle the default action when user scrolls vertically (no Click event in that case)
    • If user just Tap, or moves its finger horizontally, a click event comes immediately with no delay.

dpointer acts the same:

  • when it doesn't prevent default action on touch events, a click will happen with a delay.
  • when it prevents the default action (essentially by calling |preventDefault() on the first touchmove), it will synthesize and send a click with no delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants