Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.7
-
None
Description
Hi, I discovered this odd behavior where touch and mouse input behave differently for no obvious reason:
If a TapHandler is in an Item that overlays a Flickable (/ListView), the Flickable does not respond do being dragged by a mouse. Interestingly, it works without an issue on a touchscreen, there the Flickable can be scrolled, and tapping triggers the TapHandler, exactly how it should be in my opinion.
Here is a minimal example to reproduce the problem:
import QtQuick import QtQuick.Controls import QtQuick.Window Window { id: window width: 500 height: 500 visible: true Flickable { id: flickable anchors.top: parent.top anchors.left: parent.left width: 300; height: 300 contentWidth: rect.width; contentHeight: rect.height clip: true Rectangle { id: rect color: "red" width: 300; height: 600 } ScrollBar.vertical : ScrollBar {} ScrollBar.horizontal : ScrollBar {} } Item { anchors.fill: flickable TapHandler { onTapped: function(eventPoint, button) { print("tapped") } } } }