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

PB-277: The mouse wheel zoom constraint had some issues with different #665

Merged
merged 2 commits into from Feb 28, 2024

Conversation

ltshb
Copy link
Contributor

@ltshb ltshb commented Feb 27, 2024

devices/os

On some device and os the mouse zoom wheel was unusable (one scroll step would result to full zoom in or out). A user reported this per email and I had the issue on my private windows machine with its touchpad and with 2 different mouses. Strangely the same mouse were working fine with my HP Zbook on linux.

See also openlayer issue openlayers/openlayers#15423

Test link

Copy link

cypress bot commented Feb 27, 2024

Passing run #775 ↗︎

0 168 21 0 Flakiness 0

Details:

PB-277: Do not round the zoom to the closest swisstopo zoom on mouse wheel
Project: web-mapviewer Commit: d0f2c299bf
Status: Passed Duration: 03:51 💡
Started: Feb 28, 2024 1:17 PM Ended: Feb 28, 2024 1:21 PM

Review all test suite changes for PR #665 ↗︎

@pakb
Copy link
Contributor

pakb commented Feb 28, 2024

I don't know if it is something we should tackle in the scope of this change :

when we zoom through a map gesture (be it mouse wheel on desktop or pinch gesture on mobile) I would not trigger the zoom rounding computation.
Currently you can feel like a last small step applied clearly after the mouse wheel event has been handled, and I find it a bit annoying.
I'd keep the "round to nearest integer zoom level" approach with zoom buttons though

devices/os

On some device and os the mouse zoom wheel was unusable (one scroll step
would result to full zoom in or out). A user reported this per email and
I had the issue on my private windows machine with its touchpad and with
2 different mouses. Strangely the same mouse were working fine with
my HP Zbook on linux.

See also openlayer issue openlayers/openlayers#15423
@ltshb ltshb force-pushed the bug-PB-277-mouse-wheel-zoom branch 2 times, most recently from 27fec8f to fcaf2d5 Compare February 28, 2024 13:01
…wheel

However keep the swisstopo closest zoom for the button.
@ltshb ltshb force-pushed the bug-PB-277-mouse-wheel-zoom branch from fcaf2d5 to d0f2c29 Compare February 28, 2024 13:13
@ltshb ltshb merged commit f3ff066 into develop Feb 28, 2024
6 checks passed
@ltshb ltshb deleted the bug-PB-277-mouse-wheel-zoom branch February 28, 2024 13:49
@cypress cypress bot mentioned this pull request Feb 28, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants