mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): reset cursor pos when fitting document
This commit is contained in:
parent
eec3c3b884
commit
0a5ac2baec
@ -517,7 +517,11 @@ export const setStageEventHandlers = (manager: KonvaNodeManager): (() => void) =
|
||||
setToolBuffer(getToolState().selected);
|
||||
setTool('view');
|
||||
setSpaceKey(true);
|
||||
setLastCursorPos(null);
|
||||
setLastMouseDownPos(null);
|
||||
} else if (e.key === 'r') {
|
||||
setLastCursorPos(null);
|
||||
setLastMouseDownPos(null);
|
||||
manager.fitDocument();
|
||||
manager.renderBackground();
|
||||
manager.renderDocumentSizeOverlay();
|
||||
|
Loading…
Reference in New Issue
Block a user