mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +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.NONE) {
|
||||
e.cancel();
|
||||
} else {
|
||||
this.editor.setMode(MODES.POLY);
|
||||
e.cancel();
|
||||
}
|
||||
e.cancel();
|
||||
|
||||
if (mode === MODES.NONE) this.editor.setMode(MODES.POLY);
|
||||
};
|
||||
|
||||
bindEvents = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue