diff --git a/src/core/classes/items-management/swipe-navigation-items-manager.ts b/src/core/classes/items-management/swipe-navigation-items-manager.ts index 846d4e147..8988d0809 100644 --- a/src/core/classes/items-management/swipe-navigation-items-manager.ts +++ b/src/core/classes/items-management/swipe-navigation-items-manager.ts @@ -129,7 +129,11 @@ export class CoreSwipeNavigationItemsManager< while (deltaMoved !== delta) { nextIndex += deltaStep; - if (nextIndex < 0 || nextIndex >= items.length) { + if (nextIndex < 0) { + return null; + } + + if (nextIndex >= items.length) { break; }