From eff13f2830bf48fc3a9283565d81cbec284465cd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 10 Jul 2025 00:27:18 +1000 Subject: internal: scroll fix part 2 Closes #202 --- modules/launcher/AppList.qml | 2 +- modules/notifications/Content.qml | 2 +- shell.qml | 1 + widgets/StyledListView.qml | 17 +++++++++++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 widgets/StyledListView.qml diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml index bbcb27f..db0e6d8 100644 --- a/modules/launcher/AppList.qml +++ b/modules/launcher/AppList.qml @@ -7,7 +7,7 @@ import Quickshell import QtQuick import QtQuick.Controls -ListView { +StyledListView { id: root required property TextField search diff --git a/modules/notifications/Content.qml b/modules/notifications/Content.qml index 84df4c3..6f326c5 100644 --- a/modules/notifications/Content.qml +++ b/modules/notifications/Content.qml @@ -50,7 +50,7 @@ Item { color: "transparent" radius: Appearance.rounding.normal - ListView { + StyledListView { id: list model: ScriptModel { diff --git a/shell.qml b/shell.qml index f649fed..b5c2c9d 100644 --- a/shell.qml +++ b/shell.qml @@ -1,4 +1,5 @@ //@ pragma Env QS_NO_RELOAD_POPUP=1 +//@ pragma Env QT_QUICK_FLICKABLE_WHEEL_DECELERATION=10000 import "modules" import "modules/drawers" diff --git a/widgets/StyledListView.qml b/widgets/StyledListView.qml new file mode 100644 index 0000000..bb004fb --- /dev/null +++ b/widgets/StyledListView.qml @@ -0,0 +1,17 @@ +import "root:/config" +import QtQuick + +ListView { + id: root + + maximumFlickVelocity: 3000 + + rebound: Transition { + NumberAnimation { + properties: "x,y" + duration: Appearance.anim.durations.normal + easing.type: Easing.BezierSpline + easing.bezierCurve: Appearance.anim.curves.standard + } + } +} -- cgit v1.2.3-freya