mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 12:31:33 +01:00
fix: add ev.cancelable
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user