fix resize handle drag offset

This commit is contained in:
Evan Simkowitz
2024-08-14 19:37:47 -07:00
parent a95f60469a
commit 15cd0b2477
+2 -2
View File
@@ -553,8 +553,8 @@ export class LayoutModel {
}
const boundingRect = this.displayContainerRef.current?.getBoundingClientRect();
x -= boundingRect?.top;
y -= boundingRect?.left;
x -= boundingRect?.top + 10;
y -= boundingRect?.left - 10;
const clientPoint = parentIsRow ? x : y;
const clientDiff = (this.resizeContext.resizeHandleStartPx - clientPoint) * this.resizeContext.pixelToSizeRatio;