mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Fix Prettier formatting warnings in LiveCameraView
Wrap long callback parameter type signatures to satisfy Prettier's line-length rules. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3a258d758a
commit
72abc27488
@ -243,7 +243,9 @@ export default function LiveCameraView({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleOverlayMouseDown = useCallback(
|
const handleOverlayMouseDown = useCallback(
|
||||||
(e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>) => {
|
(
|
||||||
|
e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
|
||||||
|
) => {
|
||||||
if (!clickOverlay || !clickOverlayRef.current) return;
|
if (!clickOverlay || !clickOverlayRef.current) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const pos = getClientPos(e);
|
const pos = getClientPos(e);
|
||||||
@ -256,7 +258,9 @@ export default function LiveCameraView({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleOverlayMouseMove = useCallback(
|
const handleOverlayMouseMove = useCallback(
|
||||||
(e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>) => {
|
(
|
||||||
|
e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
|
||||||
|
) => {
|
||||||
if (!dragStart) return;
|
if (!dragStart) return;
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const pos = getClientPos(e);
|
const pos = getClientPos(e);
|
||||||
@ -268,7 +272,9 @@ export default function LiveCameraView({
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleOverlayMouseUp = useCallback(
|
const handleOverlayMouseUp = useCallback(
|
||||||
(e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>) => {
|
(
|
||||||
|
e: React.MouseEvent<HTMLDivElement> | React.TouchEvent<HTMLDivElement>,
|
||||||
|
) => {
|
||||||
if (!clickOverlay || !clickOverlayRef.current || !dragStart) {
|
if (!clickOverlay || !clickOverlayRef.current || !dragStart) {
|
||||||
setDragStart(null);
|
setDragStart(null);
|
||||||
setDragCurrent(null);
|
setDragCurrent(null);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user