SettingsPanel: finaly fixed the conflict between scrollview and textinput!

This commit is contained in:
LemmyCook 2025-09-05 15:47:07 -04:00
parent 3140039ccb
commit f9a48becce

View file

@ -477,10 +477,16 @@ NPanel {
}
}
sourceComponent: ScrollView {
sourceComponent: Flickable {
// Using a Flickable here with a pressDelay to fix conflict between
// ScrollView and NTextInput. This fix the weird text selection issue.
id: flickable
anchors.fill: parent
pressDelay: 200
ScrollView {
id: scrollView
Layout.fillWidth: true
Layout.fillHeight: true
anchors.fill: parent
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded
padding: Style.marginL * scaling
@ -503,4 +509,5 @@ NPanel {
}
}
}
}
}