MCPcopy
hub / github.com/reisxd/TizenTube / getCSSSpatNavAction

Function getCSSSpatNavAction

mods/spatial-navigation-polyfill.js:693–695  ·  view source on GitHub ↗

* Return the value of 'spatial-navigation-action' css property of an element * @function getCSSSpatNavAction * @param element {Node} - would be the spatial navigation container * @returns {string} auto | focus | scroll

(element)

Source from the content-addressed store, hash-verified

691 * @returns {string} auto | focus | scroll
692 */
693 function getCSSSpatNavAction(element) {
694 return readCssVar(element, 'spatial-navigation-action') || 'auto';
695 }
696
697 /**
698 * Only move the focus with spatial navigation. Manually scrolling isn't available.

Callers 4

navigateFunction · 0.85
focusingControllerFunction · 0.85
navigateChainFunction · 0.85
findSearchOriginFunction · 0.85

Calls 1

readCssVarFunction · 0.85

Tested by

no test coverage detected