on xenial help sign in
Add right-edge drag hinting to Greeter

To match with the existing teasing animation when you tap on the right half of the Greeter. Also has the side benefit of making the code look a bit nicer. Approved by PS Jenkins bot, Michael Zanetti.

commita60fcd2122e2b6d386ff1cfbc4f72c720975069b authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateWed 20 Nov 2013, 03:15 (13 years ago) parentf0e05ce6cae4f4
1 file changed+2−5
Greeter/Greeter.qml+2−5
Greeter/Greeter.qml+2−5
@@ -89,7 +89,7 @@ Showable {
8989 when: teasingTimer.running
9090 PropertyChanges {
9191 target: greeter
92− x: -units.gu(2)
92+ x: -dragHandle.hintDisplacement
9393 }
9494 }
9595 ]
@@ -113,10 +113,7 @@ Showable {
113113 anchors.bottom: parent.bottom
114114 anchors.right: parent.right
115115
116− // no need for requiring a directional drag since we are covering the screen
117− // anyway (i.e., no change user could be trying to interact with some other
118− // UI element)
119− distanceThreshold: 0
116+ hintDisplacement: units.gu(2)
120117
121118 enabled: greeter.narrowMode || !greeter.locked
122119