Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12, 6.2.0 RC2
-
None
-
-
d99b0cfed (dev), 4f1752a6b (6.7), f7add7ad0 (6.6)
Description
When QGraphicsView is set to AnchorUnderMouse, zooming in and out with the trackpad causes the reference scene position (under the cursor) to drift. This issue does not occur when zooming in and out with the mouse wheel.
This effect seems to be even more pronounced on Mac OS and/or if inertial scrolling is enabled.
Steps to reproduce this issue:
1 - Open the "40000 Chips" qt example.
2 - Press and hold Ctrl to enable zoom while scrolling
3 - Scroll up and down many times using two fingers on the trackpad/touchpad and observe the scene position under the mouse.
4 - The scene drifts/pan sideways as we do that many times
Expected behaviour:
4 - Just like when using the mouse wheel, the position under the mouse should stay constant
May be related (but not the same) to https://bugreports.qt.io/browse/QTBUG-73033
Attachments
Issue Links
- resulted in
-
QTBUG-128240 QGraphicsView::mapToScene has odd offset.
- Reported
Gerrit Reviews
For Gerrit Dashboard: QTBUG-96879 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
529744,7 | Increase precision for QGraphicsView::AnchorUnderMouse | dev | qt/qtbase | Status: MERGED | +2 | 0 |
533075,2 | Increase precision for QGraphicsView::AnchorUnderMouse | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
533212,2 | Increase precision for QGraphicsView::AnchorUnderMouse | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |