grafana / worldmap-panel

Worldmap panel plugin for Grafana 3.0 that can be overlaid with circles for data points.
MIT License
309 stars 199 forks source link

Please make zoom map by mouse wheel optional feature. #140

Closed Perlovka closed 6 years ago

Perlovka commented 6 years ago

It's really annoying to hunt with a mouse on two small buttons instead of just scrolling.

And sorry but, IMO, personal "I don't like this behavior" is not sufficient to drop functionality from public project. https://github.com/grafana/worldmap-panel/issues/138

Thanks.

oliv3 commented 6 years ago

Hi like both behaviors, so +1 for making this an option

samhatchett commented 6 years ago

It's super annoying to navigate a map by mouse clicks. It's also super annoying to have scrollability of a dashboard hijacked by the map. Maps are annoying!

But options are good, right?

The fix would be to add a control panel option to turn the mouse wheel zooming on/off. Relevant line here, for those interested in venturing into the code 😄

https://github.com/grafana/worldmap-panel/blob/e28dc598299a91dbf3def97f3a6fdff638d182a8/src/worldmap.js#L26

Perlovka commented 6 years ago

Well, i'm not a programmer. But I've tried hard ;)

daniellee commented 6 years ago

Closed by #141