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
}
}