@@ -505,11 +505,11 @@ Note: the {{focusableAreas()}} and {{getSpatialNavigationContainer()}} methods a
505
505
506
506
<pre><code highlight=markup>
507
507
<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>
513
513
</div>
514
514
</body>
515
515
</code></pre>
@@ -559,7 +559,7 @@ and the result will be <code>null</code>.</strong>
559
559
while (target.isSameNode(target.getSpatialNavigationContainer())) {
560
560
const areas = target.focusableAreas();
561
561
562
- if (areas.length === 0) { target.navigate(e.dir) ; }
562
+ if (areas.length === 0) { break ; }
563
563
564
564
target = target.spatialNavigationSearch({
565
565
dir: e.dir,
@@ -1390,18 +1390,18 @@ the proper spatial navigation behavior.
1390
1390
<div class=example>
1391
1391
In this example, a scrollable container is specified with <code highlight=css> spatial-navigation-action: focus</code> .
1392
1392
Inside 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.
1394
1394
1395
1395
<figure>
1396
1396
<img alt="" src="images/spatnav-action.png" style="width: 500px;"/>
1397
1397
<figcaption> Moving focus from "Box 2" to "Box 3" without manually scrolling</figcaption>
1398
1398
</figure>
1399
1399
1400
1400
<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>
1405
1405
</div>
1406
1406
</code></pre>
1407
1407
<pre><code highlight=css>
0 commit comments