Don't allow long-pressing on non-touchscreen devices

It isn't the right kind of interaction on a computer with a mouse or
trackpad, it should be relegated to touchscreen only. This should
hopefully cover everything from room list delegates to messages.
This commit is contained in:
Joshua Goins
2025-02-21 16:07:31 -05:00
parent 94fdf777cb
commit 88d684b6c1
9 changed files with 27 additions and 4 deletions

View File

@@ -55,6 +55,7 @@ QQC2.Control {
TapHandler {
enabled: !quoteText.hoveredLink
acceptedDevices: PointerDevice.TouchScreen
acceptedButtons: Qt.LeftButton
onLongPressed: root.showMessageMenu()
}