소스 검색

scroll to view (#28837)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 년 전
부모
커밋
b056733cf5
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/index.html

+ 2 - 0
examples/index.html

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