jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

swipeleft/swiperight not working after first pageload but working afterwards #8644

Open norberthnd opened 5 years ago

norberthnd commented 5 years ago

After the page is loaded for the first time swiperight/swipeleft is not working, on mobile devices (also on emulated devices in chrome) but works on desktop. After a reload the swiping works on mobile devices as well. No error message is shown in the console.

Made a recording of the behaviour on the swipeleft demo page: link to recording

ppetree commented 4 years ago

Don't set your swipe handlers until after mobileinit is fired.