Svadilfari icon indicating copy to clipboard operation
Svadilfari copied to clipboard

Gesture recognition failed when start gesture while scroll decelerating

Open r-plus opened this issue 2 years ago • 2 comments

How to reproduce

  1. Scroll up or down
  2. Start gesture while inertial scrolling

Env

  • iOS 16.0.2
  • svadilfari v1.2.0

r-plus avatar Sep 29 '22 13:09 r-plus

Safari will not fire the touchmove event when user start the touch while momentum scrolling. scroll event is not help to workaround this for gesture recognition, horizontal finger move without scroll will not fire the event.

https://developer.apple.com/forums/thread/99316

r-plus avatar Jan 08 '24 08:01 r-plus

@r-plus Thank you for opening the issue and looking into this (and my apologies for negligence). My understanding is that Safari doesn't fire touchmove events while the scroll is in progress, and it seems that your link confirms this behavior.

While I see the issue, I can't think of any workaround. Let me know if you have any ideas.

shumbo avatar Jan 08 '24 18:01 shumbo