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.
This commit is contained in:
Kristian Høgsberg 2013-06-17 08:59:20 -04:00
parent 08d8c68bff
commit c24744ec91

View File

@ -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);