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

QtQuick scrolling behavior erratic with XInput2 high-precision scrolling

    XMLWordPrintable

Details

    Description

      Qt 5.3 introduces high-precision touchpad scrolling using XInput2 on X11. This breaks QtQuick's ScrollView and Flickable, however.

      Run the following on X11 using 5.3 Beta

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      import QtQuick.Window 2.0
      
      ApplicationWindow {
          width: 640
          height: 480
      
          ListView {
              anchors.fill: parent
              model: 250
              delegate: Text { text: index }
          }
      }
      

      and then on a notebook do a little bit longer flick. You can also wrap a QtQuick Controls ScrollView around the ListView. It will flick from index 0 to around 200 which is way too much. Even with a ScrollView which doesn't really have momentum, it scrolls to around 50. This works with a traditional Qt widget based applications where the scrolling is precise (does not scroll in deletage-heights but pixel-wise) and stops when lifting off the finger.

      It seems as if the Flickable/ScrollView got the high-precision scroll events (ie. scroll 100 pixels) but interpreted them as mousewheel scroll 3 items per event (resulting in a 300 item scroll)

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              broulik Kai Uwe Broulik
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes