mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
fix resize handle drag offset
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user