mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix hidden frames bug when adding or removing frames
This commit is contained in:
parent
fa62ae511e
commit
66452de1e5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user