mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-20 04:15:53 +01:00
android fix: release focus after scrolling
This commit is contained in:
parent
a57da2f0cd
commit
44079aab37
@ -166,6 +166,11 @@ Rectangle {
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
clip: true
|
||||
|
||||
onFlickingChanged: {
|
||||
releaseFocus();
|
||||
}
|
||||
|
||||
// Disabled scrollbars, gives crash on startup on windows
|
||||
// ScrollIndicator.vertical: ScrollIndicator { }
|
||||
// ScrollBar.vertical: ScrollBar { } // uncomment to test
|
||||
|
10
main.qml
10
main.qml
@ -1439,4 +1439,14 @@ ApplicationWindow {
|
||||
return false
|
||||
}
|
||||
|
||||
function releaseFocus() {
|
||||
// Workaround to release focus from textfield when scrolling (https://bugreports.qt.io/browse/QTBUG-34867)
|
||||
if(isAndroid) {
|
||||
console.log("releasing focus")
|
||||
middlePanel.focus = true
|
||||
middlePanel.focus = false
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user