@@ -505,11 +505,11 @@ Note: the {{focusableAreas()}} and {{getSpatialNavigationContainer()}} methods a
505505
506506 <pre><code highlight=markup>
507507 <body>
508- <button class="box" ></button>
509- <div class="container" style="width:300px; height:200px; overflow-x: scroll;">
510- <button class="box" style="left:25px;"></button>
511- <button class="box" style="left:150px;"></button>
512- <button class="box" style="left:350px;"></button>
508+ <button></button>
509+ <div style="width:300px; height:200px; overflow-x: scroll;">
510+ <button style="left:25px;"></button>
511+ <button style="left:150px;"></button>
512+ <button style="left:350px;"></button>
513513 </div>
514514 </body>
515515 </code></pre>
@@ -559,7 +559,7 @@ and the result will be <code>null</code>.</strong>
559559 while (target.isSameNode(target.getSpatialNavigationContainer())) {
560560 const areas = target.focusableAreas();
561561
562- if (areas.length === 0) { target.navigate(e.dir) ; }
562+ if (areas.length === 0) { break ; }
563563
564564 target = target.spatialNavigationSearch({
565565 dir: e.dir,
@@ -1390,18 +1390,18 @@ the proper spatial navigation behavior.
13901390<div class=example>
13911391In this example, a scrollable container is specified with <code highlight=css> spatial-navigation-action: focus</code> .
13921392Inside the container, there is an element which is out of the view within a <a>scrollport</a> .
1393- Pressing the right arrow key moves the focus directly to it without scrolling manually.
1393+ Pressing the down arrow key moves the focus directly to it without scrolling manually.
13941394
13951395 <figure>
13961396 <img alt="" src="images/spatnav-action.png" style="width: 500px;"/>
13971397 <figcaption> Moving focus from "Box 2" to "Box 3" without manually scrolling</figcaption>
13981398 </figure>
13991399
14001400 <pre><code highlight=markup>
1401- <div class = 'scroller' >
1402- <button class = 'item' >Box 1</button>
1403- <button class = 'item' >Box 2</button>
1404- <button class = 'item' >Box 3</button>
1401+ <div class= 'scroller' >
1402+ <button class= 'item' >Box 1</button>
1403+ <button class= 'item' >Box 2</button>
1404+ <button class= 'item' >Box 3</button>
14051405 </div>
14061406 </code></pre>
14071407 <pre><code highlight=css>
0 commit comments