From 0974cafbe7e10dd08fe3fef371d002c3606feb9e Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 28 Jan 2017 12:40:34 -0600 Subject: [PATCH] some more scrolling tweaks --- data/web-static/js/mudsync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/web-static/js/mudsync.js b/data/web-static/js/mudsync.js index cf340d5..0e7ebe6 100644 --- a/data/web-static/js/mudsync.js +++ b/data/web-static/js/mudsync.js @@ -26,8 +26,9 @@ function scrollDown() { function withMaybeScroll(thunk) { var stream_metabox = document.getElementById("stream-metabox"); var should_scroll = false; - if(stream_metabox.scrollTop === (stream_metabox.scrollHeight - - stream_metabox.offsetHeight)) { + // if within a reasonable threshold, we scroll + if((stream_metabox.scrollHeight - stream_metabox.offsetHeight) + - stream_metabox.scrollTop <= 50) { should_scroll = true; } thunk(); -- 2.31.1