Home » Android » javascript – multi-touch on chrome for android-Exceptionshub

javascript – multi-touch on chrome for android-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment


I have an element on my page that i’m able to drag left and right, by attaching touchstart and touchmove event listeners, and then adjusting the element’s left style.
This works great.

However, whilst I’m dragging, other click/touch events on the page don’t work (i.e. clicking buttons/links).

Attaching a touchstart event listener to the document does show the 2nd touchstart event is firing just as a normal event would, however it doesnt actually click the button/do whatever the normal touch event side effect would be.

Is there a flag/setting I can set to cause other touch events to fire whilst I’m in the middle of a drag? I realise I can hijack the document event listener and force the events on their respective targets, but this feels like a hack. Is there a proper way to enable multi-touch events?


How to&Answers: