feat: -rm perf monitor event latency
This commit is contained in:
@@ -113,7 +113,6 @@ const Canvas = ({ width, height, onCreateRef }: CanvasProps) => {
|
|||||||
}, [socket]);
|
}, [socket]);
|
||||||
|
|
||||||
const onMouseEvent = useCallback((event: MouseEvent) => {
|
const onMouseEvent = useCallback((event: MouseEvent) => {
|
||||||
performanceMonitor.current.measureEventLatency(event);
|
|
||||||
if (socket && canvasRef.current) {
|
if (socket && canvasRef.current) {
|
||||||
// Get the canvas bounding rectangle
|
// Get the canvas bounding rectangle
|
||||||
const rect = canvasRef.current.getBoundingClientRect();
|
const rect = canvasRef.current.getBoundingClientRect();
|
||||||
|
|||||||
Reference in New Issue
Block a user