fix: add ev.cancelable

This commit is contained in:
Barış Soner Uşaklı
2020-12-04 12:59:08 -05:00
parent dcd6fbafb2
commit 63d0839550

View File

@@ -194,7 +194,7 @@ define('navigator', ['forum/pagination', 'components'], function (pagination, co
delayedRenderPost(); delayedRenderPost();
} }
if (isNavigating) { if (isNavigating && ev.cancelable) {
ev.preventDefault(); ev.preventDefault();
ev.stopPropagation(); ev.stopPropagation();
var newTop = clampTop(touchY + $(window).scrollTop() - thumbHalfHeight); var newTop = clampTop(touchY + $(window).scrollTop() - thumbHalfHeight);