Fix hidden frames bug when adding or removing frames

This commit is contained in:
Julian Descottes 2018-11-24 20:47:43 +01:00
parent fa62ae511e
commit 66452de1e5

View file

@ -130,6 +130,7 @@
if (hiddenIndex >= index) {
return hiddenIndex + 1;
}
return hiddenIndex;
});
this.setCurrentFrameIndex(index);
@ -151,6 +152,7 @@
if (hiddenIndex > index) {
return hiddenIndex - 1;
}
return hiddenIndex;
});
// Current frame index is impacted if the removed frame was before the current frame