Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

[FIXED] e.originalEvent.touches is empty in chrome #129

Open
suzanne-edelman opened this issue Jan 14, 2019 · 1 comment
Open

[FIXED] e.originalEvent.touches is empty in chrome #129

suzanne-edelman opened this issue Jan 14, 2019 · 1 comment

Comments

@suzanne-edelman
Copy link

when on a touch device using chrome, the e.originalEvent.touches is empty, so the touch events on the clockpicker weren't working. this is fixed by replacing e.originalEvent.touches[0] with (e.originalEvent.touches[0]===undefined || e.originalEvent.touches.length==0 ? e.originalEvent.changedTouches[0] : e.originalEvent.touches[0]) in the mousedown() function in jquery-clockpicker.js

@djibe
Copy link

djibe commented Mar 2, 2019

Hi, I don't maintain the jquery-clockpicker, just the bootstrap-clockpicker.
Sorry

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

No branches or pull requests

2 participants