Skip to content

Fix zoom behavior for high-resolution touchpads#61

Merged
AmonRaNet merged 2 commits intoAmonRaNet:masterfrom
retsubhtym:fix/wheelZoom
May 5, 2025
Merged

Fix zoom behavior for high-resolution touchpads#61
AmonRaNet merged 2 commits intoAmonRaNet:masterfrom
retsubhtym:fix/wheelZoom

Conversation

@retsubhtym
Copy link

  • Use qRound() for precise event positions.
  • Handle pixelDelta() when angleDelta() is zero to support smooth scrolling on high-resolution touchpads. angleDelta() is unreliable for modern touchpads, as some devices report finer scroll steps via pixelDelta().
  • Adjust zoom scaling with qPow() for better granularity

@AmonRaNet AmonRaNet self-assigned this May 5, 2025
@AmonRaNet AmonRaNet merged commit aa4e9af into AmonRaNet:master May 5, 2025
10 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments