fix timeline upward scrolling limit (#10673)

This commit is contained in:
Josh Hawkins 2024-03-25 15:56:20 -05:00 committed by GitHub
parent 6dd6ca5de5
commit 71c7504de5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -240,7 +240,7 @@ function useDraggableElement({
// top of timeline - default 2 segments added for draggableElement visibility // top of timeline - default 2 segments added for draggableElement visibility
const elementLatest = draggableElementLatestTime const elementLatest = draggableElementLatestTime
? timestampToPixels(draggableElementLatestTime) ? timestampToPixels(draggableElementLatestTime)
: segmentHeight * 2 + scrolled; : segmentHeight * 1.5;
const timelineRect = timelineRef.current.getBoundingClientRect(); const timelineRect = timelineRef.current.getBoundingClientRect();
const timelineTopAbsolute = timelineRect.top; const timelineTopAbsolute = timelineRect.top;