assets/scripts.js: Make left/right arrow seeks "natural"

Unbreaks jumping to/past first choice with empty localStorage.
This commit is contained in:
Vladimir Panteleev 2019-07-28 18:05:30 +00:00
parent 96908eb3af
commit ad877dfe1e

View file

@ -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) {