Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-92165

REG 5.15->6.0: when PinchHandler and DragHandler are used together, trackpad pinch gesture causes a jump

XMLWordPrintable

    • macOS
    • 73051631545dc59d4419a5ef2202355349aab480 (qt/qtdeclarative/dev) bae1598c2a0db724626c5a8e37a5874f2a46354a (qt/qtdeclarative/6.1)

      This can be reproduced on macOS with tests/manual/pinter/pinchHandler.qml for example: do a trackpad pinch on the blue rectangle, and it jumps to align its upper-left corner to the cursor position rather than rotating and scaling around the cursor position.

      The reason seems to be that QQuickMultiPointHandler::wantsPointerEvent() returns true for all gesture events, but only PinchHandler actually knows how to handle them so far. DragHandler must not say that it "wants" them, because then it will receive them and react.

      Later on, DragHandler probably could handle the PanNativeGesture. But that's not implemented yet, so for now it needs to ignore all gesture events.

        For Gerrit Dashboard: QTBUG-92165
        # Subject Branch Project Status CR V

            srutledg Shawn Rutledge
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes