mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
only scroll by 1 segment on desktop
This commit is contained in:
parent
260261c3e5
commit
8d183aa0c3
@ -200,14 +200,12 @@ function useDraggableHandler({
|
||||
let newPosition = clientYPosition;
|
||||
|
||||
if (draggingAtTopEdge) {
|
||||
newPosition =
|
||||
scrolled - (isMobile ? segmentHeight : segmentHeight * 2);
|
||||
newPosition = scrolled - segmentHeight;
|
||||
timelineRef.current.scrollTop = newPosition;
|
||||
}
|
||||
|
||||
if (draggingAtBottomEdge) {
|
||||
newPosition =
|
||||
scrolled + (isMobile ? segmentHeight : segmentHeight * 2);
|
||||
newPosition = scrolled + segmentHeight;
|
||||
timelineRef.current.scrollTop = newPosition;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user