Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.3.1
-
Windows 10, DELL XPS 157590
Description
This code does not work properly:
import QtQuick 2.15 import QtQuick.Window 2.15 Window { width: 640 height: 480 visible: true Rectangle { anchors.centerIn: parent width: 640 height: 80 color: "yellow" Rectangle { id: feedback color: "red" width: 100 height: 100 radius: Math.max(width, height) / 2 visible: handler.active } DragHandler { id: handler target: feedback dragThreshold: 10 //try with: 0 10 30 50 100 minimumPointCount: 1 maximumPointCount: 1 grabPermissions: PointerHandler.CanTakeOverFromAnything onGrabChanged: { console.debug("onGrabChanged", transition, point, point.state, dragThreshold); } onCanceled: { console.debug("onCanceled", point, point.state, dragThreshold); } onActiveChanged: { console.debug("onActiveChanged", active) } } } }
if the application is used on a touch screen.
There are two problems there:
- very often DragHandler activation does not occur
- if activation occurs the target is not in the middle under the finger, as it is with the mouse cursor
I noticed that the problem worsens if dragThreshold is larger (with default 10 for my system) the problem occurs quite often. For larger values almost always. However, it also happens for 0.
The sample code works without problems with all values with Qt 5.15.2 for both mouse and touch. So this is a regression.
Attachments
Issue Links
- relates to
-
QTBUG-75661 DragHandler jumps to center if handler outside target
-
- Closed
-
- resulted in
-
QTBUG-108786 [reg 5.15->6] PointHandler prevents DragHandler from seeing touchpoint entering its parent item
-
- Reported
-
- mentioned in
-
Page Loading...