• Register
Welcome to Kodlogs, programming questions and answer website.
0 votes
89 views
i get this error on scrolling on chrome i did following recommendations:

 if (global.navigator.pointerEnabled) {

    crossvent[op](el, pointers[type], fn, { passive: false });

  } else if (global.navigator.msPointerEnabled) {

    crossvent[op](el, microsoft[type], fn, { passive: false });

  } else {

    crossvent[op](el, touch[type], fn, { passive: false });

    crossvent[op](el, type, fn, { passive: false });

  }
by (390 points)  
reshown by

1 Answer

0 votes
// open menu on swipe to right

$(document).on('swiperight', function(e) {

    document.addEventListener("swiperight", e.preventDefault(), {passive: false} );

    e.preventDefault()

    $('.menu').addClass('active');

});
by (5.3k points)  
...