Skip to content

Commit b6c0a0c

Browse files
authored
Stop pointerdown event from properties panel (#600)
1 parent 2573c5e commit b6c0a0c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/src/lifetime/input.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ export function createInputManager(editor: EditorState, container: HTMLElement,
108108
const onPointerMove = (e: PointerEvent): void => {
109109
if (!e.buttons) viewportPointerInteractionOngoing = false;
110110

111-
const modifiers = makeModifiersBitfield(e);
112-
editor.instance.on_mouse_move(e.clientX, e.clientY, e.buttons, modifiers);
111+
if (viewportPointerInteractionOngoing) {
112+
const modifiers = makeModifiersBitfield(e);
113+
editor.instance.on_mouse_move(e.clientX, e.clientY, e.buttons, modifiers);
114+
}
113115
};
114116

115117
const onPointerDown = (e: PointerEvent): void => {

0 commit comments

Comments
 (0)