mattbryson / TouchSwipe-Jquery-Plugin

TouchSwipe is a jquery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc.
http://labs.rampinteractive.co.uk/touchSwipe/
Other
4.05k stars 1.68k forks source link

triggerOnTouchLeave on Android gets script stuck #368

Open johnkw opened 3 years ago

johnkw commented 3 years ago

Swiping left or right with triggerOnTouchLeave on Android Chrome browser causes the script to get stuck in a weird state.

Firefox on Desktop doesn't have this problem. Not sure on any other browsers.

The next swipe fails to trigger swipeStatus during swiping, and then always fires either swipeLeft or swipeRight depending on the last swipe. (So you're forced to swipe 2 times in the same direction.)

I wasn't able to really get to the root cause, however re-loading the script fixes it. Ie, after a swipeLeft. do something like:

$("#thing").swipe("destroy"); $("#thing").swipe( { ...... } );

Aniswashere commented 2 years ago

swipping right causes a stuck in the script even after re-loading the script . i think the issue came from the swipe function on android chrome .