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 id: scrollView
Layout.fillWidth: true anchors.fill: parent
Layout.fillHeight: true
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
ScrollBar.vertical.policy: ScrollBar.AsNeeded ScrollBar.vertical.policy: ScrollBar.AsNeeded
padding: Style.marginL * scaling padding: Style.marginL * scaling
@ -504,3 +510,4 @@ NPanel {
} }
} }
} }
}