mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-31 08:44:45 +00:00
Revert "homescreens: Use WheelHandler on app list"
This reverts commit 11a45f94d2.
This commit is contained in:
parent
7f98a8191a
commit
b9d4ff6455
2 changed files with 1 additions and 19 deletions
|
|
@ -46,15 +46,6 @@ MobileShell.GridView {
|
||||||
interactive: (dragging || !atYBeginning) // allow us to drag to the top
|
interactive: (dragging || !atYBeginning) // allow us to drag to the top
|
||||||
&& folio.HomeScreenState.swipeState !== Folio.HomeScreenState.SwipingAppDrawerGrid
|
&& 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 {
|
Connections {
|
||||||
target: folio.HomeScreenState
|
target: folio.HomeScreenState
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import QtQuick.Layouts 1.1
|
||||||
import QtQuick.Controls 2.15 as Controls
|
import QtQuick.Controls 2.15 as Controls
|
||||||
|
|
||||||
import org.kde.plasma.components 3.0 as PC3
|
import org.kde.plasma.components 3.0 as PC3
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami 2.10 as Kirigami
|
||||||
|
|
||||||
import org.kde.plasma.private.mobileshell as MobileShell
|
import org.kde.plasma.private.mobileshell as MobileShell
|
||||||
import org.kde.plasma.private.mobileshell.state as MobileShellState
|
import org.kde.plasma.private.mobileshell.state as MobileShellState
|
||||||
|
|
@ -69,15 +69,6 @@ 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 {
|
PC3.Label {
|
||||||
id: metrics
|
id: metrics
|
||||||
text: "M\nM"
|
text: "M\nM"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue