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

decide whether to add a 2-finger-drag Pointer Handler (or add feature to an existing one)

    XMLWordPrintable

Details

    • ca7cdd71ee33f0d77eb6bf1367d2532e26155cb2

    Description

      QtLocation needs this: when you move two fingers vertically, together, it tilts the map.

      You could say that it's a kind of pinch, but so far we use that gesture to drag the target item. So, maybe you could disable dragging via some property, and maybe PinchHandler should have axis objects like DragHandler does, so that you can bind to the 2-finger vertical displacement somehow?

      Another way is to make DragHandler inherit from QQuickMultiPointHandler, and support a configurable number of touchpoints, like PinchArea does. So if you set minimumPointCount to 2, it would not activate until you are dragging two fingers, and then it would use the centroid between them as the basis of the calculations.

      Maybe it turns out that most handlers should inherit QQuickMultiPointHandler then. We could imagine a multi-finger TapHandler too.

      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
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes