diff options
Diffstat (limited to 'desktop/modules')
| -rw-r--r-- | desktop/modules/appearance/WallpaperTab.qml | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/desktop/modules/appearance/WallpaperTab.qml b/desktop/modules/appearance/WallpaperTab.qml index cf41a4d..b51b710 100644 --- a/desktop/modules/appearance/WallpaperTab.qml +++ b/desktop/modules/appearance/WallpaperTab.qml @@ -518,18 +518,13 @@ Column { } } - // The default wheel step moves a fraction of a thumbnail; a - // notch here moves one row. A touchpad's pixel delta is kept. - MouseArea { + // A notch moves one row, animated. On top of the thumbnails, + // none of which takes the wheel. + WheelScroll { parent: wallList anchors.fill: parent - acceptedButtons: Qt.NoButton - onWheel: wheel => { - const d = wheel.pixelDelta.y !== 0 ? wheel.pixelDelta.y - : wheel.angleDelta.y / 120 * wallList.thumbHeight; - wallList.contentY = Math.max(wallList.originY, Math.min( - wallList.originY + wallList.contentHeight - wallList.height, wallList.contentY - d)); - } + flick: wallList + step: wallList.thumbHeight } } } |
