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

Flickable never reaches atYEnd or atYBeginning with touchpad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.0.1, 6.1.0 Beta 1
    • None
    •  Win10 x64, Hi-DPI screen, touch screen, touch pad
    • Windows

      Windows 10 laptop with Hi-DPI (3840x2160) touch screen.
      Using Qt6.0.1.

      Run the following qml file with qmlscene:

      qmlscene.exe --resize-to-root flickable.qml
      
      import QtQuick 2.15
      
      Item {
        width: 600
        height: 600
      
        Flickable {
          id: flickable
          anchors.fill: parent
          contentWidth: 600
          contentHeight: 800
      
          Rectangle {
            width: 600
            height: 800
            radius: 20
            border.width: 25
            border.color: '#ddd'
          }
        }
      
        Text {
          anchors.centerIn: flickable
          text: 'contentY: ' + flickable.contentY.toFixed(2) + '\n'
            + 'atYBeginning: ' + flickable.atYBeginning + '\n'
            + 'atYEnd: ' + flickable.atYEnd
        }
      }
      

      Try swiping up and down using TouchPad. The flickable's contentY position is capped with 0.5 and (height - 0.5). The content never overshoots as expected. Works fine if you use Mouse Drag, Mouse Wheel, TouchPad Drag, Touchscreen Drag. Does not work only when using TouchPad flick. See the attached video.

      Sometimes Mouse Wheel may get stuck in this situation as well, but I assume it is the TouchPad that puts it into that state.

      The same behaviour can be observed in any Flickable: GridView, etc..

      The issue did not exist in Qt5.15.1.

      The issue still exists in Qt dev branch at commit 91dc70dba9fd1f1.

        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
            dzmitry.mazouka.1 Dzmitry Mazouka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes