fix: RESIZE_START takes start size from UI (no window in main thread)
This commit is contained in:
1 parent
c8df3b8054
commit
a86c3e3152
2 files changed
+5
-4
No files matched your search
+3
-3
@@ -139,13 +139,13 @@ export default function () {
|
||||
return { x: 0, y: 0 }
|
||||
}
|
||||
}
|
||||
on('RESIZE_START', function (payload: { dir: string }) {
|
||||
on('RESIZE_START', function (payload: { dir: string; startW: number; startH: number }) {
|
||||
const p = getPos()
|
||||
resizeAnchor = {
|
||||
x: p.x,
|
||||
y: p.y,
|
||||
w: window.innerWidth,
|
||||
h: window.innerHeight,
|
||||
w: payload.startW,
|
||||
h: payload.startH,
|
||||
dir: payload.dir
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user