enable ui dragging (#923)

This commit is contained in:
Logan McNaughton 2026-05-20 09:14:43 +02:00 committed by GitHub
parent 28b1424357
commit 06d0aa53bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 1 deletions

View File

@ -48,6 +48,7 @@ export component Cheats inherits Page {
Rectangle { }
if CheatsData.cheats.length > 0:ListView {
mouse-drag-pan-enabled: true;
preferred-height: root.height;
horizontal-stretch: 1;
for data in CheatsData.cheats: VerticalBox {

View File

@ -1,4 +1,4 @@
import { VerticalBox, HorizontalBox, TextEdit, ScrollView, LineEdit, Button, GridBox } from "std-widgets.slint";
import { VerticalBox, HorizontalBox, TextEdit, LineEdit, Button, GridBox } from "std-widgets.slint";
import { NetplayData } from "netplay_page.slint";
export global NetplayWaitData {

View File

@ -19,6 +19,7 @@ export component Page inherits VerticalBox {
}
ScrollView {
mouse-drag-pan-enabled: true;
vertical-stretch: 1;
VerticalBox {

View File

@ -11,6 +11,7 @@ export component VruDialog inherits Window {
in-out property words <=> VruData.words;
ScrollView {
mouse-drag-pan-enabled: true;
VerticalBox {
padding-bottom: 40px;
for word[i] in words: Button {