mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +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);
|
||||
setIsDragging(true);
|
||||
|
||||
if (scrollTimeRef.current && clientYPosition) {
|
||||
if (scrollTimeRef.current && clientYPosition && isDesktop) {
|
||||
const handlebarRect = scrollTimeRef.current.getBoundingClientRect();
|
||||
setInitialClickAdjustment(clientYPosition - handlebarRect.top);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user