mirror of
https://github.com/mehotkhan/BandersnatchInteractive.git
synced 2025-07-27 17:23:22 +00:00
assets/scripts.js: Make left/right arrow seeks "natural"
Unbreaks jumping to/past first choice with empty localStorage.
This commit is contained in:
parent
96908eb3af
commit
ad877dfe1e
1 changed files with 2 additions and 0 deletions
|
@ -383,6 +383,7 @@ function jumpForward() {
|
|||
if (m.startMs > ms && (interactionMs == 0 || m.startMs < interactionMs))
|
||||
interactionMs = m.startMs;
|
||||
|
||||
segmentTransition = true;
|
||||
if (interactionMs) {
|
||||
seek(interactionMs);
|
||||
} else {
|
||||
|
@ -406,6 +407,7 @@ function jumpBack() {
|
|||
inMoment = true;
|
||||
}
|
||||
|
||||
segmentTransition = true;
|
||||
if (interactionMs) {
|
||||
seek(interactionMs);
|
||||
} else if (inMoment) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue