diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-25 16:45:43 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-25 16:45:43 -0700 |
commit | 218db0771fae0754a50cadc1891a042112b58699 (patch) | |
tree | 00d1af89da017416a13e2a69ca97f678ef93d446 /ext/mixed/js/display.js | |
parent | bc2bf51a072af45ddc61a7f6b1c5cc3b94f8ad3e (diff) |
cleanup, firefox scrolling
Diffstat (limited to 'ext/mixed/js/display.js')
-rw-r--r-- | ext/mixed/js/display.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 140185cc..50940e58 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -149,14 +149,14 @@ class Display { $('.current').hide().eq(index).show(); - const body = $('body').stop(); + const container = $('html,body').stop(); const entry = $('.entry').eq(index); const target = index === 0 ? 0 : entry.offset().top; if (smooth) { - body.animate({scrollTop: target}, 200); + container.animate({scrollTop: target}, 200); } else { - body.scrollTop(target); + container.scrollTop(target); } this.index = index; |