Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
Description
steps to reproduce:
- start following program on android 11
- use "back" gesture, but cancel it (swipe from side into middle, then you see the arrow swipe back to the edge and release)
- MouseArea is stuck in Pressed State and will no trigger onPressed and onRelease... onPositionChanged is still triggered
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true title: qsTr("Hello World") Rectangle { anchors.fill: parent color: mouseArea.pressed ? "red" : "white" } MouseArea { id: mouseArea anchors.fill: parent onPressed: console.log("onPressed"); onReleased: console.log("onReleased"); onPositionChanged: console.log("onPositionChanged"); } }
problem also appears if the back gesture was finished, but is catched by
ApplicationWindow { onClosing: { if (Qt.platform.os === "android") { close.accepted = false; } } }