From f1c955e6fc532fba6bb03009157b0c25b1a22b69 Mon Sep 17 00:00:00 2001
From: Peter Jaszkowiak
Date: Fri, 30 Jun 2017 23:38:52 -0600
Subject: [PATCH] Fix scrollStop not working sometimes
---
public/src/modules/scrollStop.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/public/src/modules/scrollStop.js b/public/src/modules/scrollStop.js
index 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