1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-29 23:26:24 +01:00

android fix: release focus after scrolling

This commit is contained in:
Jaquee 2017-08-07 12:22:49 +02:00
parent a57da2f0cd
commit 44079aab37
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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
}
}
}