mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
fix resize handle drag offset
This commit is contained in:
parent
a95f60469a
commit
15cd0b2477
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user