Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.2, 6.4.0 Beta1
-
None
Description
When a HoverHandler is defined with acceptedDevices: PointerDevice.Mouse it also receives touch events.
This makes it hard to have mouse specific interaction on tactile screens, as every touch will also trigger a mouse interaction.
The following sample code (adapted from https://doc.qt.io/qt-5/qml-qtquick-hoverhandler.html#acceptedDevices-prop) demonstrates the issue.
- Interaction with mouse -> prints mouse
- Interaction with touch screen -> prints touch screen and mouse alternating
- Interaction with stylus -> prints mouse (Lenovo X1 Yoga tested with Fedora 32, might be solved by 8e822e98 or an issue on a different layer. I can open a separate issue if requested.)
Item { HoverHandler { acceptedDevices: PointerDevice.Mouse onHoveredChanged: console.log("mouse") } HoverHandler { acceptedDevices: PointerDevice.Stylus onHoveredChanged: console.log("stylus") } HoverHandler { acceptedDevices: PointerDevice.TouchScreen onHoveredChanged: console.log("touch screen") } }