Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Why only swipeleft or swiperight event does work?

When I first swipe left, it calls swipeleft event and swiperight does not work. When I first swipe right, it calls swiperright event and swiperleft does not work.

try {
  if ($('div[class="warp"]')['swipe'] !== undefined) {
    $('div[class="warp"]')['swipe']({
      swipeLeft: function(_0x5899xa, _0x5899xb, _0x5899xc, _0x5899xd, _0x5899xe, _0x5899xf) {

        alert("left");
        btnQuestionTab(2);

      },
      allowPageScroll: 'none',
      threshold: 35,
      preventDefaultEvents: false
    });
    $('div[class="warp"]')['swipe']({
      swipeRight: function(_0x5899xa, _0x5899xb, _0x5899xc, _0x5899xd, _0x5899xe, _0x5899xf) {

        alert("right");
        btnQuestionTab(1);

      },
      allowPageScroll: 'none',
      threshold: 35,
      preventDefaultEvents: false
    })
  }
} catch (err) {};

Comments