Re: [csswg-drafts] [css-nav-1] changing the spatnav scroll controls from JS to declarative (#3401)

If `navbeforescroll` is removed, there will be no way to block scrolling behavior. 
Therefore it's hard to implement the infinite scroll in the page with the spatial navigation.

But it's much easier if we have the suggesting property, 'spatial-navigation-behavior' CSS Property.
It defines how the directional input behaves for the scrollable element.
`spatial-navigation-behavior: focus` can separate the native scroll and the spatial navigation behavior.
We have `navnotarget` to know the end of the current scroller and prevent the focus to move out of the spatial navigation container.

You can see the detail and how it works in the following page:
https://raw.githack.com/jihyerish/spatial-navigation/spatnav-behavior/demo/virtual-scroller/navnotarget_ver.html

-- 
GitHub Notification of comment by jihyerish
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3401#issuecomment-466841848 using your GitHub account

Received on Monday, 25 February 2019 01:31:46 UTC