FormidableLabs / react-swipeable

React swipe event handler hook
https://commerce.nearform.com/open-source/react-swipeable
MIT License
1.99k stars 146 forks source link

`preventScrollOnSwipe` does not work while focused on input #335

Open willashley23 opened 10 months ago

willashley23 commented 10 months ago

Describe the bug When an input field is focused on ios Safari, preventScroll flag does not work as intended, IE, the page still scrolls.

Steps or Sandbox to reproduce This has to be reproduced inside an ios simulator like xCode or on your mobile device directly

Expected behavior It should prevent scrolling behavior if I swipe while focused on an input

Device/Browser Safari iOS 17.0