Make scroll views scrollable with touch

This commit is contained in:
2026-01-03 21:07:26 +01:00
parent d739f53ce7
commit de3383efdb
+3
View File
@@ -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 <int> 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;