DragHandle: fix hinting
commite3d41c9e10931fa81c70dc33a061b19719c9ae3c
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateMon 1 Jul 2013, 18:45 (13 years ago)
parent8ba498c
Components/DragHandle.qml+4
@@ -48,6 +48,10 @@ EdgeDragArea {
4848 id: dragArea
4949 objectName: "dragHandle"
5050
51+ // Disable gesture detection by default when hinting is used.
52+ // It doesn't make sense to have both.
53+ distanceThreshold: hintDisplacement > 0 ? 0 : units.gu(1.5)
54+
5155 property bool stretch: false
5256
5357 property alias autoCompleteDragThreshold: dragEvaluator.dragThreshold