Sign in

How to solve the problem that IOS can't monitor touch events due to sliding inertia

coeen edited in Thu, 26 Jan 2023

When IOS slides a div (for example, sliding left and right), it will trigger sliding inertia, causing it to accelerate first, then decelerate, and finally stop rolling. But in this process, the finger has actually left the screen. In this inertial sliding process, as long as it has not stopped, any touch event on the finger can not be triggered. How can this problem be solved? How can we correctly trigger touch start, touch move and other events in the process of rolling the div left and right

There may be a doubt in the above description. I'll explain it in detail. When the finger leaves the screen and clicks the sliding area again, the touch event can't be triggered. The brain compensation process is: if you want to slide left first and then quickly slide right, the left slide actually continues to slide, and the right slide you click does not trigger the touch event

0 Replies