summaryrefslogtreecommitdiff
path: root/src
diff options
authorGord Allott <gord.allott@canonical.com>2010-01-12 11:12:09 +0000
committerGord Allott <gord.allott@canonical.com>2010-01-12 11:12:09 +0000
commit795b770814a96f53459f253d29274283c9f81e91 (patch)
tree84c7650706a022de802471000d5eea08246bca54 /src
parent9fc6d83173571b0eea6519ada7619ee4a4e024be (diff)
small fix for scroller animation
(bzr r55.1.6)
Diffstat (limited to 'src')
-rw-r--r--src/quicklauncher/unity-scroller.vala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/quicklauncher/unity-scroller.vala b/src/quicklauncher/unity-scroller.vala
index 75b4bb92b..630ca4024 100644
--- a/src/quicklauncher/unity-scroller.vala
+++ b/src/quicklauncher/unity-scroller.vala
@@ -383,10 +383,14 @@ namespace Unity.Widgets
this.scroll_anim.completed ();
}
- position = get_next_neg_position (position);
- this.scroll_anim = this.animate (
+ if (iters > 0)
+ {
+
+ position = get_next_neg_position (position);
+ this.scroll_anim = this.animate (
Clutter.AnimationMode.EASE_OUT_QUAD,
16 * iters, "drag_pos", position);
+ }
}
return true;