on xenial help sign in
cleanup comments
commitc51562b7b830219dc9a1a31549610edbe25b04b6 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 24 Jun 2013, 11:44 (13 years ago) parent5c197f1
1 file changed+3−5
Launcher/LauncherDelegate.qml+3−5
Launcher/LauncherDelegate.qml+3−5
@@ -24,7 +24,6 @@ Item {
2424
2525 property real angle: 0
2626
27− onAngleChanged: if (index == 1) print("onAngleChanged", angle)
2827 property bool highlighted: false
2928 property real offset: 0
3029 property alias brightness: transformEffect.brightness
@@ -126,7 +125,7 @@ Item {
126125 angle: root.angle * 0.7
127126 },
128127 // Because rotating it 3 times moves it more to the front/back, i.e. it gets
129− // bigger/smaller we need a scale to eliminate that side effect again.
128+ // bigger/smaller and we need a scale to compensate that again.
130129 Scale {
131130 xScale: 1 - (Math.abs(angle) / 500)
132131 yScale: 1 - (Math.abs(angle) / 500)
@@ -175,7 +174,7 @@ Item {
175174 PropertyChanges {
176175 target: root
177176
178− // This is the offset that keeps the items in the panel
177+ // This is the offset that keeps the items inside the panel
179178 offset: {
180179 // First/last items are special
181180 if (index == 0 || index == iconRepeater.count-1) {
@@ -189,7 +188,6 @@ Item {
189188 // Are we already completely outside the flickable? Stop the icon here.
190189 if (priv.distanceFromEdge < -priv.totalUnfoldedHeight) {
191190 return (-priv.distanceFromEdge - (root.height - effectiveHeight)) * priv.orientationFlag;
192− return (-priv.distanceFromEdge - effectiveHeight) * priv.orientationFlag
193191 }
194192
195193 // We're touching the edge, move slower than the actual flicking speed.
@@ -233,7 +231,7 @@ Item {
233231 // First item is special
234232 if (index == 0 || index == iconRepeater.count-1) {
235233 if (priv.distanceFromEdge < 0) {
236− // Fade from 1 to 0 in the distance of 2 items height (which is when the next item reaches the edge)
234+ // Fade from 1 to 0 in the distance of 3 * foldingAreaHeight (which is when the next item reaches the edge)
237235 return 1.0 - (-priv.distanceFromEdge / (priv.foldingAreaHeight * 3))
238236 }
239237 return 1; // Don't make first/last item transparent as long as inside the view