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

Navigating with a high resolution wheel scrolling is buggy #147

Open
Zaczero opened this issue Aug 7, 2023 · 3 comments
Open

Navigating with a high resolution wheel scrolling is buggy #147

Zaczero opened this issue Aug 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Zaczero
Copy link
Member

Zaczero commented Aug 7, 2023

On this video, all I do is one mouse rotation up and down. I never lift my finer off the scroll wheel. It's way too sensitive. Maybe https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY is not handled properly?

2023-08-07.23-11-24.mp4
@Zaczero Zaczero added the bug Something isn't working label Aug 7, 2023
@starsep
Copy link
Member

starsep commented Aug 7, 2023

Zoom is set to integer on purpose at

map.scrollZoom.setWheelZoomRate(1);

I commented out this line and seems to work fine. I don't see any issue with e.g. vector tiles. They are fetched with rounded zoom level
@ttomasz Why only integers? Definitely url looks better but it could be rounded while serializing.

@ttomasz
Copy link
Contributor

ttomasz commented Aug 7, 2023

@ttomasz Why only integers? Definitely url looks better but it could be rounded while serializing.

I don't remember it used to be some fraction very long time ago but someone said or changed it because they felt it was too slow or something.

@Zaczero
Copy link
Member Author

Zaczero commented Aug 10, 2023

This is still open, I noticed the behavior switches seemingly at random. I caught it on video:

2023-08-10.03-25-15.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants