change(ui) - ignore clicks while annotating

This commit is contained in:
Shekar Siri 2022-06-29 16:44:49 +02:00
parent 2e2e8a5e8b
commit 249fa09cf8

View file

@ -232,6 +232,8 @@ export default class AssistManager {
private onMouseClick = (e: MouseEvent): void => {
if (!this.socket) { return; }
if (getState().annotating) return // ignore clicks while annotating
const data = this.md.getInternalViewportCoordinates(e)
// const el = this.md.getElementFromPoint(e); // requires requestiong node_id from domManager
const el = this.md.getElementFromInternalPoint(data)