git ssb

16+

Dominic / patchbay



Commit c92a93967bb396f80301e13f0ca7d85b544f71b4

fix tab navigation scrolling you to top of tab

mix irving committed on 3/10/2018, 10:02:29 AM
Parent: 12afbe74bc5cc064c91589765740b445178cba25

Files changed

app/sync/goTo.jschanged
app/sync/goTo.jsView
@@ -36,11 +36,15 @@
3636
3737 var page = tabs.get(locationId)
3838 if (page) {
3939 tabs.select(locationId)
40- if (page && page.firstChild && page.firstChild.scrollDownToMessage) {
41- page.firstChild.scrollDownToMessage(location.key)
40 +
41 + if (location.value) { // if there's a value it's not just a hydrated locationId
42 + if (page && page.firstChild && page.firstChild.scrollDownToMessage) {
43 + page.firstChild.scrollDownToMessage(location.key)
44 + }
4245 }
46 +
4347 api.history.sync.push(location)
4448
4549 return true
4650 }

Built with git-ssb-web