浏览代码

scroll to view (#28837)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 年之前
父节点
当前提交
4ce3b36822
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      examples/index.html

+ 2 - 0
examples/index.html

@@ -106,6 +106,8 @@
 
 				if ( validRedirects.has( file ) === true ) {
 
+					content.querySelector( `a[href="${ file }.html"]` ).scrollIntoView();
+
 					selectFile( file );
 					viewer.src = validRedirects.get( file );
 					viewer.style.display = 'unset';