From c24744ec91f6eebd3e665bf5f374f9c9812e95f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 17 Jun 2013 08:59:20 -0400 Subject: [PATCH] spring: End spring simulatio faster The spring animation runs for a long time after it has visually settled down, because we're requiring too much stability. --- src/animation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/animation.c b/src/animation.c index 10ab5837..ed65739a 100644 --- a/src/animation.c +++ b/src/animation.c @@ -94,8 +94,8 @@ weston_spring_update(struct weston_spring *spring, uint32_t msec) WL_EXPORT int weston_spring_done(struct weston_spring *spring) { - return fabs(spring->previous - spring->target) < 0.0002 && - fabs(spring->current - spring->target) < 0.0002; + return fabs(spring->previous - spring->target) < 0.002 && + fabs(spring->current - spring->target) < 0.002; } typedef void (*weston_surface_animation_frame_func_t)(struct weston_surface_animation *animation);