As workaround, use this to handle double clicks in the PinchArea and remove MouseArea from there:
MultiPointTouchArea { anchors.fill: parent Timer { id: dblTapTimeout interval: 600 repeat: false onTriggered: dblTapHandler.pressCount = 0 }
touchPoints: TouchPoint { id: dblTapHandler property int pressCount: 0 onPressedChanged: { if (pressed) { pressCount++; dblTapTimeout.running = true; } else { if (pressCount === 2) { // handle double click console.log("DBLTap") pressCount = 0; dblTapTimeout.stop(); } } } } }
This could be kept even if the upstream bug gets fixed, and have a MouseArea that is enabled only if the form factor hints desktop. Those hints will land later to UITK.
As workaround, use this to handle double clicks in the PinchArea and remove MouseArea from there:
Timer {
id: dblTapTimeout
}
id: dblTapHandler
}
}
}
This could be kept even if the upstream bug gets fixed, and have a MouseArea that is enabled only if the form factor hints desktop. Those hints will land later to UITK.