fix(ui): correctly set last cursor pos to null

This commit is contained in:
psychedelicious
2024-08-31 07:47:33 +10:00
parent f4e8799561
commit b1673b9222

View File

@@ -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;
};