From 2474bd71fd394413044aa8935bea44bdb886963e Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 3 Jan 2022 15:08:04 +0100 Subject: [PATCH 1/2] gs-screenshot-carousel: Disable scroll by mouse wheel on the AdwCarousel To scroll the page, not the carousel. Helps https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1592 --- src/gs-screenshot-carousel.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gs-screenshot-carousel.c b/src/gs-screenshot-carousel.c index 09965d634..b24ca335b 100644 --- a/src/gs-screenshot-carousel.c +++ b/src/gs-screenshot-carousel.c @@ -333,11 +333,9 @@ gs_screenshot_carousel_init (GsScreenshotCarousel *self) { gtk_widget_init_template (GTK_WIDGET (self)); -#if ADW_CHECK_VERSION(1, 3, 0) /* Disable scrolling through the carousel, as it’s typically used * in application pages which are themselves scrollable. */ adw_carousel_set_allow_scroll_wheel (ADW_CAROUSEL (self->carousel), FALSE); -#endif /* setup networking */ self->session = soup_session_new_with_options ("user-agent", gs_user_agent (), -- GitLab From abed6fef318fb16f9b11c05f89a3b31886ac58a6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 3 Jan 2022 15:09:15 +0100 Subject: [PATCH 2/2] 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 -- GitLab