[libadwaita/libadwaita-1-0] tab-box: Reliably finish scroll animation
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/libadwaita-1-0] tab-box: Reliably finish scroll animation
- Date: Mon, 11 Apr 2022 12:52:09 +0000 (UTC)
commit 5effa83a42f5b1be6ebaa05630812efe30971a09
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.
(cherry picked from commit cefc3ec8cf327c6a9959f1c3ca0929559398e348)
(cherry picked from commit 4e1d8be35817baff747843c9195e4306329c8433)
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 14a1902a..f7ee1c14 100644
--- a/src/adw-tab-box.c
+++ b/src/adw-tab-box.c
@@ -3028,7 +3028,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]