Skip to content

Commit

Permalink
Merge pull request #307 from trasherdk/fix/mousewheel
Browse files Browse the repository at this point in the history
fix: firefox `mousewheel` => `wheel`
  • Loading branch information
stefanocudini authored Nov 24, 2022
2 parents e3a5585 + e6fa7f3 commit 9b2ff6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leaflet-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ L.Control.Search = L.Control.extend({
L.DomEvent
.disableClickPropagation(tool)
.on(tool, 'blur', this.collapseDelayed, this)
.on(tool, 'mousewheel', function(e) {
.on(tool, 'wheel', function(e) {
self.collapseDelayedStop();
L.DomEvent.stopPropagation(e);//disable zoom map
}, this)
Expand Down

0 comments on commit 9b2ff6d

Please sign in to comment.