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

Flickable::movementEnded() not emitted when dragging on macOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.6.1, 5.7.0
    • Fix Version/s: 5.6.3
    • Labels:
      None
    • Platform/s:
      macOS
    • Commits:
      ef8c6f6a0bf5e4c9ee41306f2df59048ab96038f

      Description

      Do a 2-finger drag on touch pad. Don't flick ie. make sure to stop the movement before releasing. When you lift your fingers, Flickable does not emit movementEnded() and the value of the moving property stays true.

      import QtQuick 2.5
      import QtQuick.Window 2.2
      
      Window {
          width: 360
          height: 520
          visible: true
      
          ListView {
              model: 100
              anchors.fill: parent
              delegate: Text { text: index }
              onContentYChanged: console.log("onContentYChanged", contentY)
              onMovementStarted: console.log("onMovementStarted")
              onMovementEnded: console.log("onMovementEnded")
              onMovingChanged: console.log("onMovingChanged", moving)
          }
      }
      

      If you have for example a ScrollIndicator from QQC2 attached to the Flickable, the indicator does not hide since it thinks the content is moving.

      Reproducible with the latest released pre-built versions of Qt 5.6 and Qt 5.7, and the latest qt5 5.7 branch.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                srutledg Shawn Rutledge
                Reporter:
                jpnurmi J-P Nurmi
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes