Code review comment for lp:~martin-borho/ubuntu-weather-app/reboot-nav-and-snap-scrolling

Revision history for this message
Victor Thompson (vthompson) wrote :

The code looks good, maybe we can do something like the following to workaround the snapMode issue?

=== modified file 'app/ui/HomePage.qml'
--- app/ui/HomePage.qml 2015-02-15 15:44:33 +0000
+++ app/ui/HomePage.qml 2015-02-15 18:22:31 +0000
@@ -88,6 +88,13 @@

             property bool loaded: false

+ // TODO: workaround for not being able to use snapMode property
+ Component.onCompleted: {
+ var scaleFactor = units.gridUnit * 10;
+ maximumFlickVelocity = maximumFlickVelocity * scaleFactor;
+ flickDeceleration = flickDeceleration * scaleFactor;
+ }
+

« Back to merge proposal