Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geomap: Mouse wheel Zoom broken in Chrome #8685

Open
upsonp opened this issue Jul 12, 2019 · 3 comments
Open

Geomap: Mouse wheel Zoom broken in Chrome #8685

upsonp opened this issue Jul 12, 2019 · 3 comments

Comments

@upsonp
Copy link
Member

upsonp commented Jul 12, 2019

I don't know if anyone else has noticed this recently, but when using the mouse wheel to zoom in and out on a map, if using Chrome, the page continues to scroll while zooming.

I've tested in IE, Edge, FireFox and Chrome, it only seems to happen in Chrome.

I went to some other sites that use an embedded Google Map and noticed when using the wheel on the map it now tells you to hold CTRL while scrolling.
image

Looks to me like Google has has changed how objects get focus in Chrome on a page and updated the google maps API to handle their change.

Can anyone confirm this?

I tried using the wheel on the Geomap examples, but wheel zooming doesn't seem to work at all in any browser now.

@ghost
Copy link

ghost commented Jul 12, 2019

I can scroll zoom no issue on a laptop (trackpad), but I need to click on the map first, then it scroll zooms into where I clicked.

@upsonp
Copy link
Member Author

upsonp commented Jul 15, 2019

Even clicking the map doesn't work in my case. For some reason, in chrome, focus isn't being given to the map, even when I click on the map.

When I scroll the map does zoom in and out, but the page also scrolls up and down at the same time. I thought it was just me, but my manager had the same issue on his machine when reviewing the page I've developing.

Could this be an issue under WET 4.0.23?

I've tried on a couple of different sites I've developend where it was never an issue before. Such as the Canadian Extreme Water Level Adaptation Tool (Can-EWLAT)

@duboisp
Copy link
Member

duboisp commented Jul 18, 2019

Have you tried with the latest version of wet-boew? We recently updated the geomap dependency (open layer library) and your geomap configuration should be compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants