Add some comments to the code
This commit is contained in:
@@ -150,6 +150,7 @@
|
||||
var $selectedItem = $listItems.eq( this.navigationIndex );
|
||||
$selectedItem.addClass( 'language-option--highlighted' );
|
||||
|
||||
// If the selected item is not visible, then scroll the container to display it
|
||||
if ( !isLanguageFullyVisible( $selectedItem, this.$element ) ) {
|
||||
$selectedItem.get( 0 ).scrollIntoView( false );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user