feat(canvas): implement multi-image resize behavior to prevent nested updates during resizing

This commit is contained in:
HouYunFei
2026-08-06 12:23:01 +08:00
parent ae327e9315
commit 2e27ecb839
5 changed files with 8 additions and 3 deletions
+1 -2
View File
@@ -288,9 +288,8 @@ export const CanvasNode = React.memo(function CanvasNode({
return () => {
window.removeEventListener("mousemove", handleResizeMove);
window.removeEventListener("mouseup", handleResizeUp);
if (resizeRef.current.isResizing) onResizeEnd(data.id);
};
}, [data.id, handleResizeMove, handleResizeUp, onResizeEnd]);
}, [handleResizeMove, handleResizeUp]);
return (
<div