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