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) {
|
while (deltaMoved !== delta) {
|
||||||
nextIndex += deltaStep;
|
nextIndex += deltaStep;
|
||||||
|
|
||||||
if (nextIndex < 0 || nextIndex >= items.length) {
|
if (nextIndex < 0) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nextIndex >= items.length) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue