[gnome-software: 1/3] gs-featured-carousel: Still animate going from 2nd to 1st page
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/3] gs-featured-carousel: Still animate going from 2nd to 1st page
- Date: Tue, 30 Mar 2021 15:55:52 +0000 (UTC)
commit 2f27729db0f25474abd5c6b825b9d6d87e270d77
Author: Sebastian Keller <skeller gnome org>
Date: Tue Mar 30 00:14:53 2021 +0200
gs-featured-carousel: Still animate going from 2nd to 1st page
Previously all animations ending up on the first page would be skipped,
including going back from the second page. This however was only
intended for animations wrapping around and ending up on the first page.
Fixes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1198
src/gs-featured-carousel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-featured-carousel.c b/src/gs-featured-carousel.c
index cfb3724dd..b47a77d97 100644
--- a/src/gs-featured-carousel.c
+++ b/src/gs-featured-carousel.c
@@ -90,7 +90,7 @@ show_relative_page (GsFeaturedCarousel *self,
/* Don’t animate if we’re wrapping from the last page back to the first,
* as it means rapidly spooling through all the pages, which looks
* confusing. */
- if (new_page == 0.0)
+ if (new_page == 0.0 && delta > 0)
animation_duration_ms = 0;
hdy_carousel_scroll_to_full (self->carousel, new_page_widget, animation_duration_ms);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]