[libadwaita/wip/exalm/tab-fixes: 4/4] tab-box: Reliably finish scroll animation
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/tab-fixes: 4/4] tab-box: Reliably finish scroll animation
- Date: Mon, 11 Apr 2022 12:44:49 +0000 (UTC)
commit 46484d35d51ec331accdb6daa3ba94f6f5c9b4a6
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Apr 11 16:44:25 2022 +0400
tab-box: Reliably finish scroll animation
Prevent it from being stuck with 1px left.
src/adw-tab-box.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-tab-box.c b/src/adw-tab-box.c
index 833c8ccb..594f8cd7 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -3186,7 +3186,7 @@ adw_tab_box_size_allocate (GtkWidget *widget,
self->scheduled_scroll.info = NULL;
}
- if (adw_animation_get_state (self->scroll_animation) == ADW_ANIMATION_PLAYING) {
+ if (adw_animation_get_state (self->scroll_animation) != ADW_ANIMATION_IDLE) {
self->block_scrolling = TRUE;
gtk_adjustment_set_value (self->adjustment,
get_scroll_animation_value (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]