Skip to content

Commit f386e16

Browse files
committed
Fix focus issue when reducemotion is on
1 parent 3d3e381 commit f386e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/smooth-scroll/smooth-scroll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@
480480

481481
// If the user prefers reduced motion, jump to location
482482
if (reduceMotion()) {
483-
window.scrollTo(0, Math.floor(endLocation));
483+
adjustFocus(anchor, Math.floor(endLocation), false);
484484
return;
485485
}
486486

0 commit comments

Comments
 (0)