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.

commit6cae4f4ae21cdc9b4a7a72df64d7d4422b552990 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateMon 18 Nov 2013, 10:15 (13 years ago) parent95427df
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