mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
poly: preventing missclicks (x2)
This commit is contained in:
parent
b90d2d6a68
commit
2cfd9067a9
1 changed files with 2 additions and 6 deletions
|
@ -78,13 +78,9 @@ export class Poly {
|
||||||
|
|
||||||
if (mode === MODES.POLY) return;
|
if (mode === MODES.POLY) return;
|
||||||
|
|
||||||
if (mode !== MODES.NONE) {
|
|
||||||
e.cancel();
|
e.cancel();
|
||||||
} else {
|
|
||||||
this.editor.setMode(MODES.POLY);
|
|
||||||
e.cancel();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (mode === MODES.NONE) this.editor.setMode(MODES.POLY);
|
||||||
};
|
};
|
||||||
|
|
||||||
bindEvents = () => {
|
bindEvents = () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue