Reset last click pointer and selection key on tool mode change in ViewportHost

This commit is contained in:
2026-04-01 04:37:04 +02:00
parent a61855494c
commit 1dd41329d0

View File

@@ -253,6 +253,8 @@ export class ViewportHost {
setToolMode(toolMode: ToolMode) {
this.toolMode = toolMode;
this.lastClickPointer = null;
this.lastClickSelectionKey = null;
if (toolMode !== "box-create") {
this.setBoxCreatePreview(null);