فهرست منبع

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';