Browse Source

scroll to view (#28837)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 year ago
parent
commit
4ce3b36822
1 changed files with 2 additions and 0 deletions
  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';