Jquery Mobile swipe events in Android 4.2.2 not working
I have written a mobile web application that uses the JQuery mobile
swipeleft and swiperight events but these are not working on a Samsung
Galaxy S4 running Android 4.2.2. Running the web application in either the
standard web browser or in Chrome has the same issue: the swipe events are
not detected.
The following is how I am trying to detect the events which works fine in
other devices I have tested it on, even Android devices (but not Android
4.2.2):
$('#showImage').on("swipeleft", function (event) {
if (currentScale != initialScale) return;
if (currentPage < maxPage) {
++currentPage;
img.src = document.getElementById("page" + zeroPad(currentPage, 2) +
"url").value;
}
});
$('#showImage').on("swiperight", function (event) {
if (currentScale != initialScale) return;
if (currentPage > 1) {
--currentPage;
img.src = document.getElementById("page" + zeroPad(currentPage, 2) +
"url").value;
}
});
Is there anything I can do, code-wise, to capture these events in Android
4.2.2?
No comments:
Post a Comment