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

ListView scrolling is broken for ListView.SnapOneItem mode

XMLWordPrintable

    • macOS, Windows
    • c25f5b4c55 (qt/qtdeclarative/6.4) b9ca19b1b5 (qt/qtdeclarative/dev) b9ca19b1b5 (qt/qtdeclarative/wip/material3) c25f5b4c55 (qt/tqtc-qtdeclarative/6.4) b9ca19b1b5 (qt/tqtc-qtdeclarative/dev)

      With following simple example

      import QtQuick 2.15
      import QtQuick.Window 2.15
      
      Window {
          width: 640
          height: 480
          visible: true
      
          ListView {
              id: view
              anchors.fill: parent
      
              model: 20
              snapMode: ListView.SnapOneItem
      
              delegate: Rectangle {
                  width: view.width
                  height: view.height
                  color: Qt.rgba(Math.random(), Math.random(), Math.random(), 1.0)
              }
          }
      }
      

      view is not scrolling normally on Windows neither with mouse wheel nor via 2-finger swipe gesture on touchpad. Note that on macOS it works as expected at least via swipe gesture on touchpad,

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            studiosus Vladimir Belyavsky
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: