1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-23 00:27:30 +00:00

Stop navigating at end of timeline

This commit is contained in:
Cadence Ember 2020-04-23 00:30:26 +12:00
parent b7d3309a2b
commit 85fa2a8b35
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412

View File

@ -175,11 +175,15 @@ function loadPostOverlay(shortcode, stateChangeType) {
canInteractWithNavigation = false canInteractWithNavigation = false
var futureShortcode = entry.getPreviousShortcode() var futureShortcode = entry.getPreviousShortcode()
} }
if (futureShortcode) {
await loadPostOverlay(futureShortcode, "replace") await loadPostOverlay(futureShortcode, "replace")
const newOverlay = postOverlays.slice(-1)[0] const newOverlay = postOverlays.slice(-1)[0]
if (newOverlay === overlay) { // was cancelled if (newOverlay === overlay) { // was cancelled
canInteractWithNavigation = true canInteractWithNavigation = true
} }
} else {
canInteractWithNavigation = true
}
} }
} }
} }