Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.2.4, 6.3.2, 6.4.1
-
None
-
MacBook Pro 13-inch, M1, 2020, macOS 13.0.1 Ventura
Description
PinchHandler doesn't respect minimum/maximumScale.
Code sample:
import QtQuick Window { width: 640 height: 480 visible: true Rectangle { id: redRect anchors.centerIn: parent width: 200 height: 200 color: 'red' Text { anchors.centerIn: parent font.pixelSize: 18 text: parent.scale.toFixed(2) } } PinchHandler { target: redRect minimumScale: 0.5 maximumScale: 1.5 } }
See video Screen Recording 2022-11-26 at 22.11.17.mov
Reproduced at least on macOS with touchpad.
Attachments
Issue Links
- relates to
-
QTBUG-106110 PinchHandler.minimum/maximumScale properties aren't enforced with native gestures
- Closed
-
QTBUG-108549 PinchHandler.scale loses the accumulated scaling if target == null
- Closed
-
QTBUG-92064 PinchHandler target scale jumps when pinching a second time via native gesture
- Closed