From 77b8dcfdef72e2d6132470aeb29137305761f7e9 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 3 Mar 2024 12:38:08 -0600 Subject: [PATCH] fix scroll mode --- web/src/hooks/use-handle-dragging.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/use-handle-dragging.ts b/web/src/hooks/use-handle-dragging.ts index 794b65093..f28d82943 100644 --- a/web/src/hooks/use-handle-dragging.ts +++ b/web/src/hooks/use-handle-dragging.ts @@ -82,8 +82,8 @@ function useDraggableHandler({ ...(segmentDuration < 60 && { second: "2-digit" }), }); scrollIntoView(thumb, { + scrollMode: "if-needed", behavior: "smooth", - block: "center", }); } });