diff --git a/containments/homescreens/folio/package/contents/ui/AppDrawerGrid.qml b/containments/homescreens/folio/package/contents/ui/AppDrawerGrid.qml index 04ee8813..cecf3b62 100644 --- a/containments/homescreens/folio/package/contents/ui/AppDrawerGrid.qml +++ b/containments/homescreens/folio/package/contents/ui/AppDrawerGrid.qml @@ -46,6 +46,15 @@ MobileShell.GridView { interactive: (dragging || !atYBeginning) // allow us to drag to the top && folio.HomeScreenState.swipeState !== Folio.HomeScreenState.SwipingAppDrawerGrid + // Handle mouse wheel scrolling + Kirigami.WheelHandler { + target: root + filterMouseEvents: false + // `20 * Qt.styleHints.wheelScrollLines` is the default speed. + horizontalStepSize: 20 * Qt.styleHints.wheelScrollLines + verticalStepSize: 20 * Qt.styleHints.wheelScrollLines + } + Connections { target: folio.HomeScreenState diff --git a/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml b/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml index 14498c3a..2942475a 100644 --- a/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml +++ b/containments/homescreens/halcyon/package/contents/ui/GridAppList.qml @@ -8,7 +8,7 @@ import QtQuick.Layouts 1.1 import QtQuick.Controls 2.15 as Controls import org.kde.plasma.components 3.0 as PC3 -import org.kde.kirigami 2.10 as Kirigami +import org.kde.kirigami as Kirigami import org.kde.plasma.private.mobileshell as MobileShell import org.kde.plasma.private.mobileshell.state as MobileShellState @@ -69,6 +69,15 @@ MobileShell.GridView { } } + // Handle mouse wheel scrolling + Kirigami.WheelHandler { + target: gridView + filterMouseEvents: false + // `20 * Qt.styleHints.wheelScrollLines` is the default speed. + horizontalStepSize: 20 * Qt.styleHints.wheelScrollLines + verticalStepSize: 20 * Qt.styleHints.wheelScrollLines + } + PC3.Label { id: metrics text: "M\nM"