summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/ui/PositionController.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/ui/PositionController.java')
-rw-r--r--src/com/android/gallery3d/ui/PositionController.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/ui/PositionController.java b/src/com/android/gallery3d/ui/PositionController.java
index 1be601e1d..9797ce903 100644
--- a/src/com/android/gallery3d/ui/PositionController.java
+++ b/src/com/android/gallery3d/ui/PositionController.java
@@ -54,7 +54,7 @@ class PositionController {
600, // ANIM_KIND_SNAPBACK
400, // ANIM_KIND_SLIDE
300, // ANIM_KIND_ZOOM
- 600, // ANIM_KIND_OPENING
+ 400, // ANIM_KIND_OPENING
0, // ANIM_KIND_FLING (the duration is calculated dynamically)
800, // ANIM_KIND_CAPTURE
};
@@ -1212,10 +1212,12 @@ class PositionController {
case ANIM_KIND_SCALE:
progress = 1 - f * f; // quadratic
break;
+ case ANIM_KIND_OPENING:
+ progress = 1 - f * f * f; // x^3
+ break;
case ANIM_KIND_SNAPBACK:
case ANIM_KIND_ZOOM:
case ANIM_KIND_SLIDE:
- case ANIM_KIND_OPENING:
progress = 1 - f * f * f * f * f; // x^5
break;
}