Commit 411eef6c6da3c73d82b538518fa60094a6aeeb76
message view: improve anchor jumping when at top of screen
Matt McKegg committed on 9/30/2017, 1:38:51 PMParent: a14de0c42524ef13660881841a76089bd36e3acf
Files changed
modules/page/html/render/message.js | changed |
modules/page/html/render/message.js | ||
---|---|---|
@@ -121,9 +121,9 @@ | ||
121 | 121 | } |
122 | 122 | |
123 | 123 | function getScrollParent (element) { |
124 | 124 | while (element.parentNode) { |
125 | - if (element.parentNode.scrollTop) { | |
125 | + if (element.parentNode.scrollTop > 10) { | |
126 | 126 | return element.parentNode |
127 | 127 | } else { |
128 | 128 | element = element.parentNode |
129 | 129 | } |
Built with git-ssb-web