fix: window offsets fixed
This commit is contained in:
parent
ee47e21d34
commit
2591df6b28
|
@ -255,7 +255,8 @@ export const DraggableWindow: FC<DraggableWindowProps> = props => {
|
|||
if (!windowOptions || !windowOptions.offset) return;
|
||||
|
||||
setDelta({x: 0, y: 0});
|
||||
if (localStorage.offset) setOffset(windowOptions.offset);
|
||||
|
||||
if (windowOptions.offset) setOffset(windowOptions.offset);
|
||||
}, [uniqueKey]);
|
||||
|
||||
return createPortal(
|
||||
|
|
Loading…
Reference in New Issue