mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix frame preview toggle when moving
The hiddenFrames list is not updated correctly when a frame is moved. Unmoved frames are mapped incorrectly and result in "undefined" entries in the list, and the resuling list is left unsorted. Make sure unmoved entries still return a value when mapping and sort the list after frames have moved.
This commit is contained in:
parent
cb41a72b5b
commit
1e1e4c4071
@ -214,7 +214,10 @@
|
||||
return index + 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return index;
|
||||
}).sort();
|
||||
|
||||
};
|
||||
|
||||
ns.PiskelController.prototype.hasVisibleFrameAt = function (index) {
|
||||
|
Loading…
Reference in New Issue
Block a user