diff --git a/MiddlePanel.qml b/MiddlePanel.qml index 18568f28..f8a1d2df 100644 --- a/MiddlePanel.qml +++ b/MiddlePanel.qml @@ -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 diff --git a/main.qml b/main.qml index b72f21ff..588ea539 100644 --- a/main.qml +++ b/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 + } + + + } }