From de3383efdb1fee2fee1a38dfe3a2152b51817d7b Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Sat, 3 Jan 2026 21:07:26 +0100 Subject: [PATCH] Make scroll views scrollable with touch --- gui/ui/app.slint | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/ui/app.slint b/gui/ui/app.slint index 9b089b2..9040d2a 100644 --- a/gui/ui/app.slint +++ b/gui/ui/app.slint @@ -49,6 +49,8 @@ component GoodsList { in property <[SItem]> items; ListView { + mouse-drag-pan-enabled: true; + for item in items: VerticalLayout { GoodListItem { item: item; @@ -71,6 +73,7 @@ component GoodButtons inherits ScrollView { property count-y: ceil(favorites.length / count-x); viewport-height: (count-y * (button-height + button-spacing)) * 1pt; + mouse-drag-pan-enabled: true; for item[idx] in favorites: Button { x: floor(mod(idx, count-x)) * (root.button-width + root.button-spacing) * 1pt;