Kibana: [Map] Enable Zoom with scroll wheel

Created on 20 Jul 2016  路  9Comments  路  Source: elastic/kibana

We should enable scrolling with the mouse wheel, like every other map out there.

Minor Downside: in a large dashboard, if you quickly scroll down it and end up with your mouse over the map, then you may end up zooming in/out on it. This is an edge case though and I think normal map behavior trumps accidental scrolling.

Coordinate Map Visualizations WIP enhancement v5.4.0

Most helpful comment

Yeah that's not a bad idea. I wonder if we could just enable scrolling when the map is in "focus", e.g. when the user has clicked, dragged, or otherwise interacted with the map in some way already.

All 9 comments

I don't think that's an edge case... I can't really imagine a scenario where a person won't encounter that behavior on any sizable dashboard. I suspect that's why it existed in the first place.

I tend to agree with @epixa here. Saved searches or doc tables (or maybe both?) exhibit the same issue, and I find it really annoying when trying to scroll through a dashboard.

I guess I'm just a more focused scroller. :)

Maybe we should make it so that this is toggle-able (via the UI and a checkbox). But possibly we should come up with a solution that applies to all of them? Perhaps when you're scrolling the page outside, it can disable scrolling inside of any of those problem areas (maps included) for a hundred ms (or so) to stop users from accidentally scrolling there?

People that are used to mapping applications are used to scrolling in a map with the mouse wheel. I actually find it _very_ bizarre not having it. It's like a touch screen computer with the touch screen disabled.

Yeah that's not a bad idea. I wonder if we could just enable scrolling when the map is in "focus", e.g. when the user has clicked, dragged, or otherwise interacted with the map in some way already.

To flesh out my idea a little more, if we start scrolling on the _page_, then _maybe_ we can overlay an invisible <div> over the scrollable visualizations and only remove them after some humanly unnoticeable, but friendly timeout? I've never actually tried it, but I suspect it works.

+1

We already parse tilemap options and at first glance it is easy to implement an option for scrollWheelZoom

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MaartenUreel picture MaartenUreel  路  3Comments

timroes picture timroes  路  3Comments

spalger picture spalger  路  3Comments

timmolter picture timmolter  路  3Comments

LukeMathWalker picture LukeMathWalker  路  3Comments