on xenial help sign in
DragHandle: fix hinting

Revision 64 had a bad interaction with revision 66 (that added line was lost in the merge/rebase process). tst_DragHandle::hintingAnimation() points out the problem (fails on line 388). Approved by Michał Sawicz, PS Jenkins bot.

commite37e13c7859196dcd21cd5e030f494751df1d817 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 2 Jul 2013, 10:36 (13 years ago) parentd894886e3d41c9
1 file changed+4
Components/DragHandle.qml+4
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