Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
6.5.4, 6.6.2, 6.7, 6.8
Description
The following minimum drag start example works with 6.6.1 and the used mechanism stopped working for 6.6.2+:
import QtQuick import QtQuick.Window Window { id: win width: 640 height: 480 visible: true title: 'sandbox' DragHandler { id: dragHandler target: draggable enabled: false } Rectangle { id: draggable width: 50 height: 50 radius: 25 color: '#ccc' x: win.width / 2 - draggable.width / 2 y: win.height / 2 - draggable.height / 2 border.width: dragHandler.active ? 3 : 1 border.color: '#333' TapHandler { id: tapHandler longPressThreshold: 0 dragThreshold: 0 gesturePolicy: TapHandler.WithinBounds onLongPressed: () => { dragHandler.enabled = true } } } }