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

Zoom: Disable or override wheel gesture #1845

Open
RamonEspinosa opened this issue May 31, 2024 · 0 comments
Open

Zoom: Disable or override wheel gesture #1845

RamonEspinosa opened this issue May 31, 2024 · 0 comments

Comments

@RamonEspinosa
Copy link

I'm working on a page that shows a map similar to Geo Custom Demo.

The map projection takes a good chunk of the page's width and height.
This makes it super hard for users to scroll down to see the rest of the page because the map will intercept the wheel event.
Basically, to see the rest of the page, users need to scroll outside the map.

We thought of two solutions to this problem:

  1. Use ctrl + scroll to scroll in the map, similar to what google maps do for embedded maps:
    image
  2. Disable wheel handler and only allow zooming by using the controls ( + / - / reset)

However, i don't think the @visx/zoom package supports either.

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

No branches or pull requests

1 participant