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

Disable scroll wheel for zooming in favor of map zoom buttons #5097

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

Senen
Copy link
Member

@Senen Senen commented Mar 28, 2023

References

Replaces:

Objectives

Fix the mousewheel trap when scrolling the page to the bottom when there is more content below the map.

Manual testing

Desktop browsers

Verified successfully in:

  • Chrome
  • Firefox
  • Edge
  • Safari
  • Opera

This update has no impact in touchable devices as they do not have mouse wheel. It seems the map behaves nicely with all the browsers mentioned above.

Visual Changes

None

It's causing annoying behaviour for desktop users when scrolling
the page to the bottom and there is more content below the
map.

The behaviour of touchable devices does not seem to be
affected by this change and keeps behaving the same.
@javierm javierm self-assigned this Mar 28, 2023
Copy link
Member

@javierm javierm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I really want is the computer to read my mind and know whether I'd like to scroll or zoom when I use the mouse wheel 😄.

But I've tried scrollWheelZoom: mind_reading and it didn't work, so I guess this change is an improvement 😄.

@Senen Senen merged commit 8e0acb8 into master Mar 28, 2023
@Senen Senen deleted the map_scroll_wheel branch March 28, 2023 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants