@@ -5307,16 +5307,16 @@ export abstract class IgxGridBaseComponent extends DisplayDensityBase implements
53075307 if ( this . dataView . slice ( rowIndex , rowIndex + 1 ) . find ( rec => rec . expression || rec . childGridsData ) ) {
53085308 visibleColIndex = - 1 ;
53095309 }
5310- if ( visibleColIndex === - 1 || this . navigation . isColumnFullyVisible ( visibleColIndex ) ) {
5311- if ( this . navigation . shouldPerformVerticalScroll ( rowIndex , visibleColIndex ) ) {
5312- this . navigation . performVerticalScrollToCell ( rowIndex , visibleColIndex ,
5313- ( ) => { this . executeCallback ( rowIndex , visibleColIndex , cb ) ; } ) ;
5314- } else {
5315- this . executeCallback ( rowIndex , visibleColIndex , cb ) ;
5316- }
5317- } else {
5310+ const shouldScrollVertically = this . navigation . shouldPerformVerticalScroll ( rowIndex , visibleColIndex ) ;
5311+ const shouldScrollHorizontally = visibleColIndex !== - 1 && ! this . navigation . isColumnFullyVisible ( visibleColIndex ) ;
5312+ if ( shouldScrollVertically ) {
5313+ this . navigation . performVerticalScrollToCell ( rowIndex , visibleColIndex ,
5314+ ( ) => { this . navigateTo ( rowIndex , visibleColIndex , cb ) ; } ) ;
5315+ } else if ( shouldScrollHorizontally ) {
53185316 this . navigation . performHorizontalScrollToCell ( rowIndex , visibleColIndex , false ,
5319- ( ) => { this . executeCallback ( rowIndex , visibleColIndex , cb ) ; } ) ;
5317+ ( ) => { this . navigateTo ( rowIndex , visibleColIndex , cb ) ; } ) ;
5318+ } else {
5319+ this . executeCallback ( rowIndex , visibleColIndex , cb ) ;
53205320 }
53215321 }
53225322
0 commit comments