Commit 3d283bc1349c73533c7e323701b540ce558c28e5
rollup: increase the scroll tolerance for an auto refresh
Matt McKegg committed on 2/14/2018, 12:03:44 AMParent: 5dbc66f7b875bcfef824e722165d4867da177675
Files changed
modules/feed/html/rollup.js | changed |
modules/feed/html/rollup.js | ||
---|---|---|
@@ -116,9 +116,9 @@ | ||
116 | 116 | newSinceRefresh.add(msg.key) |
117 | 117 | unreadIds.add(msg.key) |
118 | 118 | } |
119 | 119 | |
120 | - if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 20) { | |
120 | + if (updates() === 0 && msg.value.author === yourId && container.scrollTop < 500) { | |
121 | 121 | refresh() |
122 | 122 | } else if (msg.value.author === yourId && content()) { |
123 | 123 | // dynamically insert this post into the feed! (manually so that it doesn't get slow with mutant) |
124 | 124 | var existingContainer = content().querySelector(`[data-root-id="${msg.value.content.root}"]`) |
Built with git-ssb-web