Merge pull request #3492 from NoelDeMartin/MOBILE-4081
MOBILE-4081 core: Fix negative swipe indexesmain
commit
ef42e642a1
|
@ -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