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

Details

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

    Description

      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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes