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

Touch events on Buttons #1108

Closed
jonzeper opened this issue Mar 24, 2014 · 5 comments
Closed

Touch events on Buttons #1108

jonzeper opened this issue Mar 24, 2014 · 5 comments

Comments

@jonzeper
Copy link
Contributor

In latest Chrome on Android 4.3, we're unable to receive click events on Buttons, because touchmove events are thrown for all but the slightest of taps. This block in button.js prevents click events from being thrown if any touchmove events are thrown after a touchstart.
https://github.com/videojs/video.js/blob/master/src/js/button.js#L18-L33

Does anyone know if this code is still needed? Or can we safely remove it..

Here's the commit which introduced this block:
9555b80

@mmcc mmcc added bug labels Mar 24, 2014
@gkatsev
Copy link
Member

gkatsev commented Mar 24, 2014

Yes, it is still needed, however, perhaps it should be refactors to allow some wiggle (pun intended) room.

@marvinli
Copy link

We'd love to give it a shot. Can you elaborate on what we should do? Should we do some distance based threshold for the touchmove?

@gkatsev
Copy link
Member

gkatsev commented Mar 24, 2014

Yeah, that's basically it. Rather than cancelling on all touchmoves, only cancel on touchmoves that are within a distance threshold.

@marvinli
Copy link

Okay, we'll work on this tomorrow. Cheers!

@heff
Copy link
Member

heff commented May 7, 2014

Fixed by #1111

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

Successfully merging a pull request may close this issue.

5 participants