https://bugs.kde.org/show_bug.cgi?id=512110

            Bug ID: 512110
           Summary: ScrollView acceleration glitches out when items are
                    unevenly sized (mostly on trackpads)
    Classification: Frameworks and Libraries
           Product: frameworks-qqc2-desktop-style
      Version First 6.20.0
       Reported In:
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
  Target Milestone: ---

Created attachment 186800
  --> https://bugs.kde.org/attachment.cgi?id=186800&action=edit
A video of the glitch and the intended behavior side by side

When QT_QUICK_CONTROLS_STYLE="org.kde.desktop", ScrollView acceleration
behaviour changes.
The changed behavior seems to be sensitive to size changes of the scrolled
items, and often overscrolles, and doesn't return.

I've an extreme example,  of this behavior.

Steps to reproduce:
1. Paste the following in a file, e.g Repeated.qml
```qml
import QtQuick
import QtQuick.Controls

Window {
        visible: true
        title: qsTr("Hello World")
        color: "black"

        ScrollView {
                        width: parent.width
                        height: parent.height
                ListView {
                        reuseItems: true
                        width: parent.width
                        height: parent.height

                        clip: true
                        model: 100
                        anchors.horizontalCenter: parent.horizontalCenter
                        spacing: 5

                        delegate: Rectangle {
                                required property int index
                                width: 100;
                                height: 10 + (100 - index);
                                color: "green"
                        }
                }
        }
}
```
2. Launch the file with the following command:
QT_QUICK_CONTROLS_STYLE="org.kde.desktop" qml6 Repeated.qml

3. Using the trackpad, flick the items downwards

While this also glitches when using a scroll wheel, it is way way less
consistent,
and not as drastic as in the case of the touchpad.
On the mouse, the content sometimes "overscrolls" without coming down, but only
by ~10% of the height of the view.

I tried using the `flick` method, but it works perfectly without creating this
bug

qml6 --version:
Qml Runtime 6.10.0

qqc2-desktop-style: 6.19.0-1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to