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

PinchHandler and DragHandler does not work well together

    XMLWordPrintable

Details

    • macOS
    • d6e560c356791d516856c38566104fbb2bb6c730 (qt/qtdeclarative/5.12)

    Description

      Mac OS and TrackPad

      I am using a PinchHandler and a DragHandler in the same Rectangle and whenever I try to use a pinch gesture, DragHandler takes the event and throws my rectangle to 0,0 position

      I made a change that DragHandler is disabled whenever PinchHandler is active, but with that change, most of the times DragHandler manages to take over the drag event before the pinch handler. Even if using maximumPointCount (1 for drag) and minimumPointCount (2 for pinch) does not help.

      Also if I set acceptedButtons to Qt.RightButton for DragHandler, I can still drag the rectangle with one finger, but this might be related to QTBUG-71955.

      Please find the attached example app which demonstrates the behaviour

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              pekarjal Pekka Karjalainen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes