android - JQuery Mobile swipe event only firing every other swipe -


I've set a Swaipbav event in my app to move between form fields all fields dynamically generated , So I'm not swapping between pages, I am clearing and reproducing all DOM elements. The problem is that the swipe event only swipe on the page every other time or if I touch or tap anything on the page.

Sets Here is the code that event:

  $ (document) .delegate ( "# scorePage", "pageshow", function () {$ .event. Speshlkswaipkscrolsupreshnthrasold = 10; $ Kiventkspeshlkswaipkhorizontldistansetreshold = 30; $ Kivent Kspeshlkswaipkdursntreshold = 500; $ Kiventkspeshlkswaipkverticodistansetrsold = 75; $ ( '# Divfu' ). on ( "Swaipbaut" swipe Lenfthandlr); $ ( '# divFoo'). on ( "Swiperight" SwipeRightHandler); Talikakriatt (symptoms [0] .keyboardID);}); For  

reference, tableCreate is a dynamically generated to put the table in the divFoo which can take a user here Event code is:

  Function Swipe Life Handler () {$ ("# divFoo") blank (); TraitIndex ++; TableCreate (symptoms [traitIndex] .keyboardID); }  

Why does my swipe event only fire every other time, hit the page with a swipe?

Testing primarily on Android, if it makes a difference

edit I am using JQuery Mobile version 1.4.4.

>

I rolled out my own implementation of these events and found a way around this problem. Here are some sample codes on how to do something similar:

If someone uses this code to fix my problem, make sure to swipe the article Gonna have and swipedown so you have to customize it. Finally, I'm not entirely sure about this code and differences between the actual implementation of swipeleft and swiperight, but it is constantly working so I'm cutting my losses and go with it.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -