mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): correctly set last cursor pos to null
This commit is contained in:
@@ -468,9 +468,6 @@ export class CanvasToolModule extends CanvasModuleABC {
|
||||
|
||||
syncLastCursorPos = (): Coordinate | null => {
|
||||
const pos = getScaledCursorPosition(this.konva.stage);
|
||||
if (!pos) {
|
||||
return null;
|
||||
}
|
||||
this.manager.stateApi.$lastCursorPos.set(pos);
|
||||
return pos;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user