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

ListView scrolling is broken for ListView.SnapOneItem mode

    XMLWordPrintable

    Details

    • Platform/s:
      macOS, Windows

      Description

      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,

        Attachments

        For Gerrit Dashboard: QTBUG-98979
        # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There is 1 open Gerrit change