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

Dragging multiple items from within a flickable produces inaccurate values in centroid.pressPosition

    XMLWordPrintable

Details

    Description

      Dragging multiple items from within a flickable can produce inaccurate values in centroid.pressPosition. The issue happens when the touch point for the multiple items are started at the same time. The issue does not occur if the items are picked one by one or when the Flickable's interactivity is turned off or when only one finger is used (or equivalently when only one item is dragged). The scenePosition is also consistently (0, 0) in the second DragHandler when queried from within onCentroidChanged. The issue has been verified occurring on Android and also on Windows and Linux albeit a little bit more inconsistently.

      To reproduce the issue please run the attached example project.

      When you drag one of the red rectangles, a green rectangle having the coordinates corresponding the pressPosition will appear on the screen. Dragging one item is fine and the green rectangle appears underneath the finger. Dragging two items with simultaneous touch presses causes one of the green rectangles to be places way outside the expected range. Dragging with 3 fingers causes 2 items to be dragged correctly and their centroid to have the expected values, but the third item does not get dragged at all.

      Attachments

        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
            tuomas.vaarala Tuomas Vaarala
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes