MOBILE-4081 core: Fix negative swipe indexes
parent
7990ca3e91
commit
747f23ba75
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue