mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +03:00
initial offset click for desktop only
This commit is contained in:
parent
3d539c93eb
commit
fc09de1b3e
@ -83,7 +83,7 @@ function useDraggableHandler({
|
|||||||
getClientYPosition(e);
|
getClientYPosition(e);
|
||||||
setIsDragging(true);
|
setIsDragging(true);
|
||||||
|
|
||||||
if (scrollTimeRef.current && clientYPosition) {
|
if (scrollTimeRef.current && clientYPosition && isDesktop) {
|
||||||
const handlebarRect = scrollTimeRef.current.getBoundingClientRect();
|
const handlebarRect = scrollTimeRef.current.getBoundingClientRect();
|
||||||
setInitialClickAdjustment(clientYPosition - handlebarRect.top);
|
setInitialClickAdjustment(clientYPosition - handlebarRect.top);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user