Fix hidden frames bug when adding or removing frames
This commit is contained in:
parent
fa62ae511e
commit
66452de1e5
1 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,7 @@
|
||||||
if (hiddenIndex >= index) {
|
if (hiddenIndex >= index) {
|
||||||
return hiddenIndex + 1;
|
return hiddenIndex + 1;
|
||||||
}
|
}
|
||||||
|
return hiddenIndex;
|
||||||
});
|
});
|
||||||
|
|
||||||
this.setCurrentFrameIndex(index);
|
this.setCurrentFrameIndex(index);
|
||||||
|
@ -151,6 +152,7 @@
|
||||||
if (hiddenIndex > index) {
|
if (hiddenIndex > index) {
|
||||||
return hiddenIndex - 1;
|
return hiddenIndex - 1;
|
||||||
}
|
}
|
||||||
|
return hiddenIndex;
|
||||||
});
|
});
|
||||||
|
|
||||||
// Current frame index is impacted if the removed frame was before the current frame
|
// Current frame index is impacted if the removed frame was before the current frame
|
||||||
|
|
Loading…
Reference in a new issue