diff --git a/js/sideNav.js b/js/sideNav.js index abc2821082..f6fe9ae08a 100644 --- a/js/sideNav.js +++ b/js/sideNav.js @@ -160,19 +160,14 @@ $dragTarget.hammer({ prevent_default: false }).bind('pan', function(e) { - - if (e.gesture.pointerType == "touch") { + // Vertical scroll bugfix eventType Value === 8 is hammer.js bug + if (e.gesture.pointerType == "touch" && e.gesture.eventType !== 8) { var direction = e.gesture.direction; var x = e.gesture.center.x; var y = e.gesture.center.y; var velocityX = e.gesture.velocityX; - // Vertical scroll bugfix - if (x === 0 && y === 0) { - return; - } - // Disable Scrolling var $body = $('body'); var $overlay = $('#sidenav-overlay');