[Bug] Map wheel zoom is far too fast on high-resolution wheels and touchpads
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
Research direction
Find MapCanvas.OnPointerWheelChanged and read how it currently uses e.Delta.Y and ZoomStep. Start by checking the map's existing tests or zoom handling; the issue names no test file. Done means small wheel deltas cause proportionally small zoom changes, while one notch still gives one step, with each event safely clamped.
Written by the indexing model from the issue text.
Description
What happened
On the map, the mouse wheel zooms in and out far too fast on some hardware: barely touching the wheel jumps several zoom levels. Reported on Linux (Bazzite, AppImage).
Why
MapCanvas.OnPointerWheelChanged applies one full ×1.20 step for every wheel event and looks only at the sign of Delta.Y. High-resolution wheels and touchpads send many small-delta events for one physical notch, so each of them is treated as a whole notch.
What you expected
Zoom speed follows how far the wheel moved: one notch is one step on every device, and a small scroll is a small zoom.
Suggested fix
Scale the step by the delta (Zoom *= Math.Pow(ZoomStep, e.Delta.Y)), clamped per event. Optionally add a setting to turn wheel zoom off, for users who keep the map docked as a minimap and scroll past it.
Source
Reported on the Genie Discord (#automapper, 25 November).
- Dominant language
- C#
- Stars
- 2
- Forks
- 5
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 22
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenieClient/Genie5
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
GenieClient/Genie5#496 ·
Maintainers usually reply within 5 days
-
enhancement g4-regression
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GenieClient/Genie5#494 ·
Maintainers usually reply within 5 days
-
area:ui-dock enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GenieClient/Genie5#462 ·
Maintainers usually reply within 5 days
-
[Bug] Maps ▸ Update from Official Repo / Repair Maps give no notification of success or failurePossibly taken A pull request linked to this issue is open or already merged. Openarea:mapper area:updater bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#423 · 1 assignee ·
Maintainers usually reply within 5 days
-
area:ui-dock bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#394 ·
Maintainers usually reply within 5 days
All issues in GenieClient/Genie5
Similar issues
-
documentation good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Tool] MockAPIOpenhas-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 72/100
shanselman/TinyToolTown#956 ·
Maintainers usually reply within 2 days
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Bug]: Native build script prints a traceback when Git is missing from PATHPossibly taken @Jaisuryan-web claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KnifeLemon/Filee#1953 ·
Maintainers usually reply within 1 day