mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed dragging polyline collision with router
This commit is contained in:
parent
2be073078f
commit
bdbe28b854
3 changed files with 31 additions and 19 deletions
|
@ -239,6 +239,8 @@ export class InteractivePoly extends Polyline {
|
|||
this._map.on("mousemove", this.dragHintMove);
|
||||
this._map.on("mouseup", this.dragHintAddMarker);
|
||||
this._map.on("mouseout", this.stopDragHintMove);
|
||||
|
||||
this.fire('vertexaddstart');
|
||||
};
|
||||
|
||||
stopDragHintMove = (): void => {
|
||||
|
@ -254,6 +256,7 @@ export class InteractivePoly extends Polyline {
|
|||
|
||||
setTimeout(() => {
|
||||
this.is_dragging = false;
|
||||
this.fire('vertexaddend');
|
||||
}, 0);
|
||||
};
|
||||
|
||||
|
@ -598,6 +601,8 @@ InteractivePoly.addInitHook(function() {
|
|||
vertexdragstart,
|
||||
vertexdragend,
|
||||
vertexdrag,
|
||||
vertexaddstart
|
||||
vertexaddend
|
||||
|
||||
allvertexhide
|
||||
allvertexshow
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue