@@ -5072,16 +5072,16 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
50725072 if ( this . verticalScrollContainer . igxForOf . slice ( rowIndex , rowIndex + 1 ) . find ( rec => rec . expression || rec . childGridsData ) ) {
50735073 visibleColIndex = - 1 ;
50745074 }
5075- if ( visibleColIndex === - 1 || this . navigation . isColumnFullyVisible ( visibleColIndex ) ) {
5076- if ( this . navigation . shouldPerformVerticalScroll ( rowIndex , visibleColIndex ) ) {
5077- this . navigation . performVerticalScrollToCell ( rowIndex , visibleColIndex ,
5078- ( ) => { this . executeCallback ( rowIndex , visibleColIndex , cb ) ; } ) ;
5079- } else {
5080- this . executeCallback ( rowIndex , visibleColIndex , cb ) ;
5081- }
5082- } else {
5075+ const shouldScrollVertically = this . navigation . shouldPerformVerticalScroll ( rowIndex , visibleColIndex ) ;
5076+ const shouldScrollHorizontally = visibleColIndex !== - 1 && ! this . navigation . isColumnFullyVisible ( visibleColIndex ) ;
5077+ if ( shouldScrollVertically ) {
5078+ this . navigation . performVerticalScrollToCell ( rowIndex , visibleColIndex ,
5079+ ( ) => { this . navigateTo ( rowIndex , visibleColIndex , cb ) ; } ) ;
5080+ } else if ( shouldScrollHorizontally ) {
50835081 this . navigation . performHorizontalScrollToCell ( rowIndex , visibleColIndex , false ,
5084- ( ) => { this . executeCallback ( rowIndex , visibleColIndex , cb ) ; } ) ;
5082+ ( ) => { this . navigateTo ( rowIndex , visibleColIndex , cb ) ; } ) ;
5083+ } else {
5084+ this . executeCallback ( rowIndex , visibleColIndex , cb ) ;
50855085 }
50865086 }
50875087
0 commit comments