Prevent firing a tap event while scrolling jquerymobile on android website

I have a Phonegap 3 application that uses jQuery Mobile 1.4 and Backbone.js.

In this application, I use the 'swipeleft' and 'swiperight' events to display different parts of the form (swipes show the previous / next div).

This works fine, but the problem is that if I swipe my finger over the checkboxes, the checkbox receives a tap event before the swipe is triggered, so that the state of the checkbox changes.

I see this also with other widgets, but the checkbox was enough to explain the problem.

I have no problem with chrome on the desktop or with the new chrome webview in Kitkat, but you have the problem in Gingerbread and Jelly Bean (older webkit webview).

I stop the swipe event propagation in the event handling function, but since the β€œunwanted” response fires earlier, it does not have much effect ...

Is there something I can do to avoid tap event during swipe in Android webview?

+7
android jquery-mobile cordova webview swipe
source share
1 answer

You can try e.stopPropagation to find out if your contact prevents registering on a napkin or on a flag.

0
source share

All Articles