mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-26 01:37:28 +00:00
Stop navigating at end of timeline
This commit is contained in:
parent
b7d3309a2b
commit
85fa2a8b35
@ -175,11 +175,15 @@ function loadPostOverlay(shortcode, stateChangeType) {
|
||||
canInteractWithNavigation = false
|
||||
var futureShortcode = entry.getPreviousShortcode()
|
||||
}
|
||||
if (futureShortcode) {
|
||||
await loadPostOverlay(futureShortcode, "replace")
|
||||
const newOverlay = postOverlays.slice(-1)[0]
|
||||
if (newOverlay === overlay) { // was cancelled
|
||||
canInteractWithNavigation = true
|
||||
}
|
||||
} else {
|
||||
canInteractWithNavigation = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user