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:
byronh 2020-05-25 20:47:36 -05:00
parent cb41a72b5b
commit 1e1e4c4071

View File

@ -214,7 +214,10 @@
return index + 1;
}
}
});
return index;
}).sort();
};
ns.PiskelController.prototype.hasVisibleFrameAt = function (index) {