Skip to content

Zoom: Disable or override wheel gesture #1845

Description

@RamonEspinosa

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions