W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

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

From: Jihye Hong via GitHub <sysbot+gh@w3.org>
Date: Mon, 25 Feb 2019 01:31:43 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-466841848-1551058302-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:57 UTC