Skip to content

Commit

Permalink
Fix Firefox flickering on mouse over geocoder
Browse files Browse the repository at this point in the history
Using the events `mouseenter`, `mouseleave` applies the `L.DomEvent.isExternalTarget` check, which tests if element really left/entered the event target.

Fixes #174.
  • Loading branch information
simon04 committed Jan 8, 2018
1 parent 121e6dc commit 1e10773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export default {
}, this);
}
else {
L.DomEvent.addListener(container, 'mouseover', this._expand, this);
L.DomEvent.addListener(container, 'mouseout', this._collapse, this);
L.DomEvent.addListener(container, 'mouseenter', this._expand, this);
L.DomEvent.addListener(container, 'mouseleave', this._collapse, this);
this._map.on('movestart', this._collapse, this);
}
} else {
Expand Down

0 comments on commit 1e10773

Please sign in to comment.