diff --git a/src/ui/components/Timeline/Focuser.tsx b/src/ui/components/Timeline/Focuser.tsx index 6bb6688d88e..3b1d7494bc9 100644 --- a/src/ui/components/Timeline/Focuser.tsx +++ b/src/ui/components/Timeline/Focuser.tsx @@ -14,7 +14,7 @@ import { getPositionFromTime, getTimeFromPosition } from "ui/utils/timeline"; import { EditMode } from "./Timeline"; -function stopEvent(event: MouseEvent) { +function stopEvent(event: MouseEvent | React.MouseEvent) { event.preventDefault(); event.stopPropagation(); } @@ -206,7 +206,7 @@ function Focuser({ editMode, setEditMode }: Props) { const right = getPositionFromTime(focusWindow.end, zoomRegion); return ( -