[libadwaita/wip/exalm/carousel-fix] carousel: Account for shifts in get_range()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/carousel-fix] carousel: Account for shifts in get_range()
- Date: Tue, 28 Dec 2021 13:42:08 +0000 (UTC)
commit 5dd5b37d823f1e158dfa507d1fba3592f9f39d9b
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Dec 28 18:24:15 2021 +0500
carousel: Account for shifts in get_range()
Fixes https://gitlab.gnome.org/GNOME/libadwaita/-/issues/324
src/adw-carousel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/adw-carousel.c b/src/adw-carousel.c
index 3b638cbe..c9acc758 100644
--- a/src/adw-carousel.c
+++ b/src/adw-carousel.c
@@ -218,7 +218,7 @@ get_range (AdwCarousel *self,
*lower = 0;
if (upper)
- *upper = child ? child->snap_point : 0;
+ *upper = self->position_shift + (child ? child->snap_point : 0);
}
static GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]