git ssb

10+

Matt McKegg / patchwork



Commit 3d283bc1349c73533c7e323701b540ce558c28e5

rollup: increase the scroll tolerance for an auto refresh

Matt McKegg committed on 2/14/2018, 12:03:44 AM
Parent: 5dbc66f7b875bcfef824e722165d4867da177675

Files changed

modules/feed/html/rollup.jschanged
modules/feed/html/rollup.jsView
@@ -116,9 +116,9 @@
116116 newSinceRefresh.add(msg.key)
117117 unreadIds.add(msg.key)
118118 }
119119
120- if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) {
120+ if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 500) {
121121 refresh()
122122 } else if (msg.value.author === yourId && content()) {
123123 // dynamically insert this post into the feed! (manually so that it doesn't get slow with mutant)
124124 var existingContainer = content().querySelector(`[data-root-id="${msg.value.content.root}"]`)

Built with git-ssb-web