diff --git a/src/gs-featured-carousel.c b/src/gs-featured-carousel.c index 5b83fe846285535e2f3cd3ae5e14288c5037fe11..50ceb205705984fde3610d7b7bf271048aefb304 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 diff --git a/src/gs-screenshot-carousel.c b/src/gs-screenshot-carousel.c index 09965d6345176374011c983816805b92ef4d5015..b24ca335ba65acd98d7146ed9291a176572fb03f 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 (),