[gnome-software/1592-gtk4-app-details-carousel-slides-when-pointer-hovers-while-scrolling] gs-featured-carousel: Disable scroll by mouse wheel on the AdwCarousel



commit abed6fef318fb16f9b11c05f89a3b31886ac58a6
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jan 3 15:09:15 2022 +0100

    gs-featured-carousel: Disable scroll by mouse wheel on the AdwCarousel
    
    To scroll the page, not the carousel.
    
    Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1592

 src/gs-featured-carousel.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/gs-featured-carousel.c b/src/gs-featured-carousel.c
index 5b83fe846..50ceb2057 100644
--- a/src/gs-featured-carousel.c
+++ b/src/gs-featured-carousel.c
@@ -181,6 +181,10 @@ static void
 gs_featured_carousel_init (GsFeaturedCarousel *self)
 {
        gtk_widget_init_template (GTK_WIDGET (self));
+
+       /* Disable scrolling through the carousel, as it’s typically used
+        * in application pages which are themselves scrollable. */
+       adw_carousel_set_allow_scroll_wheel (self->carousel, FALSE);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]