git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 411eef6c6da3c73d82b538518fa60094a6aeeb76

message view: improve anchor jumping when at top of screen

Matt McKegg committed on 9/30/2017, 1:38:51 PM
Parent: a14de0c42524ef13660881841a76089bd36e3acf

Files changed

modules/page/html/render/message.jschanged
modules/page/html/render/message.jsView
@@ -121,9 +121,9 @@
121121 }
122122
123123 function getScrollParent (element) {
124124 while (element.parentNode) {
125- if (element.parentNode.scrollTop) {
125+ if (element.parentNode.scrollTop > 10) {
126126 return element.parentNode
127127 } else {
128128 element = element.parentNode
129129 }

Built with git-ssb-web