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;