parent
5cce9f92c2
commit
b894639c2f
1 changed files with 2 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ BR.Routing = L.Routing.extend({
|
||||||
this._map.on('mouseover', show, this);
|
this._map.on('mouseover', show, this);
|
||||||
// prevent showing trailer on segment hover because of bubbling to map with canvas, calling show above
|
// prevent showing trailer on segment hover because of bubbling to map with canvas, calling show above
|
||||||
this._parent._segments.on('mouseover', L.DomEvent.stopPropagation, this);
|
this._parent._segments.on('mouseover', L.DomEvent.stopPropagation, this);
|
||||||
|
this._parent._segments.on('mouseout', L.DomEvent.stopPropagation, this);
|
||||||
L.DomEvent.on(this._map._controlContainer, 'mouseout', show, this);
|
L.DomEvent.on(this._map._controlContainer, 'mouseout', show, this);
|
||||||
L.DomEvent.on(this._map._controlContainer, 'mouseover', hideOverControl, this);
|
L.DomEvent.on(this._map._controlContainer, 'mouseover', hideOverControl, this);
|
||||||
});
|
});
|
||||||
|
|
@ -200,6 +201,7 @@ BR.Routing = L.Routing.extend({
|
||||||
this._map.off('mouseout', hide, this);
|
this._map.off('mouseout', hide, this);
|
||||||
this._map.off('mouseover', show, this);
|
this._map.off('mouseover', show, this);
|
||||||
this._parent._segments.off('mouseover', L.DomEvent.stopPropagation, this);
|
this._parent._segments.off('mouseover', L.DomEvent.stopPropagation, this);
|
||||||
|
this._parent._segments.off('mouseout', L.DomEvent.stopPropagation, this);
|
||||||
L.DomEvent.off(this._map._controlContainer, 'mouseout', show, this);
|
L.DomEvent.off(this._map._controlContainer, 'mouseout', show, this);
|
||||||
L.DomEvent.off(this._map._controlContainer, 'mouseover', hideOverControl, this);
|
L.DomEvent.off(this._map._controlContainer, 'mouseover', hideOverControl, this);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue