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