From 71c7504de535e55925f0ba5d06f8312d343557d8 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Mon, 25 Mar 2024 15:56:20 -0500 Subject: [PATCH] fix timeline upward scrolling limit (#10673) --- web/src/hooks/use-draggable-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/hooks/use-draggable-element.ts b/web/src/hooks/use-draggable-element.ts index 1457dd480..11242cdf4 100644 --- a/web/src/hooks/use-draggable-element.ts +++ b/web/src/hooks/use-draggable-element.ts @@ -240,7 +240,7 @@ function useDraggableElement({ // top of timeline - default 2 segments added for draggableElement visibility const elementLatest = draggableElementLatestTime ? timestampToPixels(draggableElementLatestTime) - : segmentHeight * 2 + scrolled; + : segmentHeight * 1.5; const timelineRect = timelineRef.current.getBoundingClientRect(); const timelineTopAbsolute = timelineRect.top;