[libadwaita/wip/exalm/spring-animation-swipes: 31/36] tmp
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/spring-animation-swipes: 31/36] tmp
- Date: Mon, 6 Dec 2021 12:06:08 +0000 (UTC)
commit b8df473496800a229e391cafbc3167a53fd8818d
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Dec 6 13:40:52 2021 +0500
tmp
src/adw-spring-animation.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/adw-spring-animation.c b/src/adw-spring-animation.c
index 26e36630..92e55f60 100644
--- a/src/adw-spring-animation.c
+++ b/src/adw-spring-animation.c
@@ -168,7 +168,8 @@ get_first_zero (AdwAnimation *animation)
guint i = 0;
double y = oscillate (animation, 0, NULL);
- while (self->value_to > y) {
+ while ((self->value_to > self->value_from && self->value_to - self->epsilon > y) ||
+ (self->value_to < self->value_from && self->value_to + self->epsilon < y)) {
if (i>20000)
return 0;
y = oscillate (animation, i, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]