mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
fix timeline upward scrolling limit (#10673)
This commit is contained in:
parent
6dd6ca5de5
commit
71c7504de5
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user