A polyfill for the spatial navigation
npm install @sberdevices/spatial-navigationWritten: 2017-10-17, Updated: 2019-11-27
This repository is for supportive tools of Spatial Navigation such as polyfill, demo, and relevant documents. The spatial navigation spec has been migrated from WICG to CSS WG as an official draft according to the decision at the CSS WG meeting in TPAC 2018.
You can raise a spec issue in CSS WG, but also raise others(polyfill, demo, ideas) in WICG here.
Regarding TV remote control, game console pad, IVI jog dial with 4-way keys, and Web accessibility, the spatial navigation has been a rising important input mechanism in several industries.
Eventually, we expect spatial navigation to be natively supported by browsers.
However, this is not yet the case.
Until then, authors who wish to experiment with providing this feature to their users
can include this polyfill in their page.
It can also be used for people interested in reviewing the specification
in order to test the behavior it defines in various situations.
npm i spatial-navigation-polyfill
`We recommend only using versions of the polyfill that have been published to npm, rather than cloning the repo and using the source directly. This helps ensure the version you're using is stable and thoroughly tested.
See the changes in the polyfill so far.
If you do want to build from source, make sure you clone the latest tag!
$3
Include the following code in your web page,
and the polyfill will be included,
enabling spatial navigation.
`html
...