mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 13:15:25 +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;
|
let newPosition = clientYPosition;
|
||||||
|
|
||||||
if (draggingAtTopEdge) {
|
if (draggingAtTopEdge) {
|
||||||
newPosition =
|
newPosition = scrolled - segmentHeight;
|
||||||
scrolled - (isMobile ? segmentHeight : segmentHeight * 2);
|
|
||||||
timelineRef.current.scrollTop = newPosition;
|
timelineRef.current.scrollTop = newPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (draggingAtBottomEdge) {
|
if (draggingAtBottomEdge) {
|
||||||
newPosition =
|
newPosition = scrolled + segmentHeight;
|
||||||
scrolled + (isMobile ? segmentHeight : segmentHeight * 2);
|
|
||||||
timelineRef.current.scrollTop = newPosition;
|
timelineRef.current.scrollTop = newPosition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user