change(ui) - ignore clicks while annotating
This commit is contained in:
parent
2e2e8a5e8b
commit
249fa09cf8
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue