[gnome-software/1592-gtk4-app-details-carousel-slides-when-pointer-hovers-while-scrolling] gs-screenshot-carousel: Disable scroll by mouse wheel on the AdwCarousel
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1592-gtk4-app-details-carousel-slides-when-pointer-hovers-while-scrolling] gs-screenshot-carousel: Disable scroll by mouse wheel on the AdwCarousel
- Date: Mon, 3 Jan 2022 14:10:00 +0000 (UTC)
commit 2474bd71fd394413044aa8935bea44bdb886963e
Author: Milan Crha <mcrha redhat com>
Date: Mon Jan 3 15:08:04 2022 +0100
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 (),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]