diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-11-24 13:07:25 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-11-24 13:07:25 +0100 |
commit | 156ed72f8b27222e94f6363ba905cc38b95f2875 (patch) | |
tree | 0fe109d53015ed0d23cd3fdaf3ed59236947cbb5 /crocoite | |
parent | 070bf5b2196955e6447869c23147422b4c64ffd6 (diff) | |
download | crocoite-156ed72f8b27222e94f6363ba905cc38b95f2875.tar.gz crocoite-156ed72f8b27222e94f6363ba905cc38b95f2875.tar.bz2 crocoite-156ed72f8b27222e94f6363ba905cc38b95f2875.zip |
behavior: Never scroll html/body elements
Fixes weird positioning of elements tethered to viewport top.
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/data/scroll.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crocoite/data/scroll.js b/crocoite/data/scroll.js index e1fbbcb..8a4b35d 100644 --- a/crocoite/data/scroll.js +++ b/crocoite/data/scroll.js @@ -19,7 +19,7 @@ function save(obj) { /* perform a single scroll step */ function scroll (event) { window.scrollBy (0, window.innerHeight/2); - document.querySelectorAll ('*').forEach ( + document.querySelectorAll ('html body *').forEach ( function (d) { if (d.scrollHeight-d.scrollTop > d.clientHeight) { save (d); |