AdwCarousel: position losses using idle_add
I write a simple example in Python to demonstrate the issue.
It's a infinite carousel containing always 3 pages. It is very similar to @exalm Vala example https://gitlab.gnome.org/exalm/infinite-carousel
Everything works fine if we don't use GLib.idle_add
function. To test, you can comment L111 and uncomment L114.
But if GLib.idle_add
is used, for example to check the availability of a media before create the page, we experience position losses.
Beware, you can see the problem only by navigating from left to right.