Explorar o código

scroll to view (#28837)

Co-authored-by: aardgoose <[email protected]>
aardgoose hai 1 ano
pai
achega
4ce3b36822
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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';