chore: lint
This commit is contained in:
@@ -62,7 +62,7 @@ const Canvas = ({ width, height, onCreateRef, highlighterData }: CanvasProps) =>
|
|||||||
const onMouseEvent = useCallback((event: MouseEvent) => {
|
const onMouseEvent = useCallback((event: MouseEvent) => {
|
||||||
if (socket && canvasRef.current) {
|
if (socket && canvasRef.current) {
|
||||||
const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);
|
const coordinates = getMappedCoordinates(event, canvasRef.current, width, height);
|
||||||
|
|
||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
case 'mousemove':
|
case 'mousemove':
|
||||||
if (lastMousePosition.current.x !== coordinates.x ||
|
if (lastMousePosition.current.x !== coordinates.x ||
|
||||||
|
|||||||
Reference in New Issue
Block a user