A
A
AliasKarg2014-01-28 22:30:06
JavaScript
AliasKarg, 2014-01-28 22:30:06

Why are touchmove events interrupted in Google Chrome? How to solve this problem?

After a recent Google Chrome update, multi-touch events started to work differently. Are specifically interested in why touchmove events are interrupted? For example: if you swipe your finger on the body, then touchstart, touchmove(x4..8) events occur. On it there is a "ignoring" of the further movement of a finger. I put it in quotation marks, because the scrolling of the page continues, but even the "scroll" event does not occur. This problem does not occur in Yandex browser. Why might this happen? And how to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AliasKarg, 2014-01-28
@AliasKarg

The eventa'a preventDefault method solves this problem.

G
Galina, 2019-07-31
@birdyCat

https://stackoverflow.com/questions/46328747/touch...
read the spec:
"The target of this event must be the same Element on which the touch point started when it was first placed on the surface, even if the touch point has since moved outside the interactive area of ​​the target element."
https://www.w3.org/TR/touch-events/#the-touchmove-event

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question