From f59665cccb7ecf3548f106eb638fff187221896a Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 11 Dec 2022 14:21:25 -0500 Subject: [PATCH] Fix smallest segment cache --- src/js-components/previewBar.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js-components/previewBar.ts b/src/js-components/previewBar.ts index 6e91fc0e..8ef7a81f 100644 --- a/src/js-components/previewBar.ts +++ b/src/js-components/previewBar.ts @@ -955,8 +955,7 @@ class PreviewBar { } } - if ((direction === 1 && timeInSeconds > seg.segment[1]) - || (direction === -1 && timeInSeconds < seg.segment[0])) { + if (direction === 1 && seg.segment[0] > timeInSeconds) { break; } }