Open amsross opened 10 years ago
the same issue happens for touch screen devices.
I fixed it by applying the same code in the touchmove event and it works perfectly fine.
me.bind('touchmove', function(e){ // prevent scrolling the page if necessary if(!releaseScroll) { e.originalEvent.preventDefault(); } if (e.originalEvent.touches.length) { // see how far user swiped var diff = (touchDif - e.originalEvent.touches[0].pageY) / o.touchScrollStep; // scroll content var target = e.target || e.srcTarget || e.srcElement; if ($(target).closest('.' + o.wrapperClass).is(me.parent())) { scrollContent(diff, true); } touchDif = e.originalEvent.touches[0].pageY; } });
This was brought up and fixed in issue #11 and pr #49 but seems to have been 'unfixed' at some point.
Am I perhaps misconfiguring something?