projects
/
mudsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
8sync design goals
[mudsync.git]
/
data
/
web-static
/
js
/
mudsync.js
diff --git
a/data/web-static/js/mudsync.js
b/data/web-static/js/mudsync.js
index cf340d5d6b1343ff597584d242b7ecfec47d0ee7..0e7ebe6f1c94abc23f64b582c8f87ea0c06436c3 100644
(file)
--- 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;
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();
should_scroll = true;
}
thunk();