Node.js based forum software built for the modern web
Fix scrollStop not working sometimes
Peter Jaszkowiakf1c955e6fc53
diff --git a/public/src/modules/scrollStop.js b/public/src/modules/scrollStop.jsindex 82d2df4de8..0e07641cc3 100644--- a/public/src/modules/scrollStop.js+++ b/public/src/modules/scrollStop.js@@ -16,7 +16,7 @@ define('scrollStop', function () {$(element).on('mousewheel', function (e) {var scrollTop = this.scrollTop;var scrollHeight = this.scrollHeight;- var elementHeight = this.getBoundingClientRect().height;+ var elementHeight = Math.round(this.getBoundingClientRect().height);if ((e.originalEvent.deltaY < 0 && scrollTop === 0) || // scroll up