Hi Bilbo,

there's no scroll snapping actually, but I think it could be somehow easy
to implement it in a bead, so people wanting that just need to add the bead
to the list. Searching over the internet I see this [1], but I need to take
a look. Maybe it would need some tweak of "scrollArea.scrollTop" in the
ListView.

"scrollSnappingMode" could be as well a bead that add "scroll-snap-type"
and "scroll-snap-align"

"pageScrollingEnabled" is to scroll exactly "a page", and a page is the
current list view height?
We could create a bead called "ListPageScrolling" that add "
scroll-snap-points-y" maybe in combination of the other bead or as an
extension...

Would you want to try to implement this yourself and contribute to the
project as a Pull Request (PR) ?
Maybe it could sound complicated, but it seems that is more a work of
thinking about the correct structure and just use what is implemented in
browsers right now. If you can't I could see when I could give some time.
But we need to understand that this is OS and as users become contributors,
we'll make this project grow and be more rock solid over time. It's
important to get more users on board knowing how things are done and
contributing :)

The good thing in Royale is that we can combine Flex things with modern
browsers adventages (that are many) and get best of both worlds, that's
personally what I like from Royale.

[1] https://css-tricks.com/practical-css-scroll-snapping/

El mar, 16 feb 2021 a las 2:17, Bilbosax (<[email protected]>)
escribió:

> Is there a way to provide scroll snapping in a Jewel List? Flex's list
> controls have parameters like pageScrollingEnabled and scrollSnappingMode
> so
> that when a user is scrolling a list, it will snap from one list item to
> another, like flipping through a photo gallery.  Is this possible in
> Royale?
>
> I see that there is a scrollToIndex property that could be useful, but in
> that case, you would have to have a way to remove the scrollbar or make it
> "stick" in position until you chose to increment the scrollToIndex property
> with perhaps a "next" button.
>
> Any thoughts?
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Reply via email to