mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
reordered event listeners
This commit is contained in:
parent
ce4273f03a
commit
4ba59b04fc
1 changed files with 4 additions and 5 deletions
|
@ -134,11 +134,10 @@ export class Sticker {
|
|||
this.lockMapClicks(true);
|
||||
|
||||
window.addEventListener('mousemove', this.onDrag);
|
||||
window.addEventListener('mouseup', this.onDragStop);
|
||||
window.addEventListener('touchmove', this.onDrag);
|
||||
window.addEventListener('touchend', this.onDragStop);
|
||||
|
||||
// this.marker.disableEdit();
|
||||
window.addEventListener('mouseup', this.onDragStop);
|
||||
window.addEventListener('touchend', this.onDragStop);
|
||||
};
|
||||
|
||||
preventPropagations = (e): void => {
|
||||
|
@ -156,9 +155,9 @@ export class Sticker {
|
|||
this.isDragging = false;
|
||||
|
||||
window.removeEventListener('mousemove', this.onDrag);
|
||||
window.removeEventListener('mouseup', this.onDragStop);
|
||||
|
||||
window.removeEventListener('touchmove', this.onDrag);
|
||||
|
||||
window.removeEventListener('mouseup', this.onDragStop);
|
||||
window.removeEventListener('touchend', this.onDragStop);
|
||||
|
||||
this.lockMapClicks(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue