From addf49800a8935c74e5be3ef848f93338148d026 Mon Sep 17 00:00:00 2001 From: mx Date: Tue, 13 Oct 2026 15:53:47 +0200 Subject: [PATCH] Scroll the wallpaper picker with the mouse wheel Co-Authored-By: Claude Opus 5.5 --- quickshell/wallpaper/WallpaperPicker.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/quickshell/wallpaper/WallpaperPicker.qml b/quickshell/wallpaper/WallpaperPicker.qml index e757b79..44c566f 100644 --- a/quickshell/wallpaper/WallpaperPicker.qml +++ b/quickshell/wallpaper/WallpaperPicker.qml @@ -91,6 +91,18 @@ PanelWindow { Keys.onReturnPressed:root.applyCurrent() Keys.onEnterPressed:root.applyCurrent() Keys.onEscapePressed:ShellState.wallpaperPickerOpen=false + // A vertical mouse wheel steps through the horizontal strip, one tile per notch. + WheelHandler { + property real pending:0 + acceptedDevices:PointerDevice.Mouse + onWheel:event=>{ + pending+=event.angleDelta.y || event.angleDelta.x; + const steps=Math.trunc(pending/120); + if(!steps)return; + pending-=steps*120; + view.currentIndex=Math.max(0,Math.min(view.count-1,view.currentIndex-steps)); + } + } delegate:GlassPanel { id:tile required property var modelData