mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): reset cursor pos when fitting document
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user