0

How would I go about disabling a sideswipe event in and if else statement? I have a table I want to swipe through but I want to disable it from swiping right if its at the beginning. I can't seem to find anything on goog.

function swiperighthandler (event) {
    if (whatever) {
        // code to disable the swipe
    }
    else {
        //Other code I want to run
    }

}
degys
  • 75
  • 5

1 Answers1

1

As jquery mobile is not very smooth in case of page transitions.Its better if we try to turn off all the page transitions in jquery mobile.

$.mobile.defaultPageTransition = "none";

you can also use

 <style>
    /*** for jquerymobile page flicker ***/
    .ui-page {
        -webkit-backface-visibility: hidden;
    }
</style>

Also please go through following links.You might get what you are looking for. link1

link2

Community
  • 1
  • 1
Nagama Inamdar
  • 2,851
  • 22
  • 39
  • 48