mirror of
https://github.com/scratchfoundation/scratch-render.git
synced 2025-08-01 17:09:26 -04:00
Math.max mix-up
Bounding to a minimum, we should use `Math.max`...
This commit is contained in:
parent
1fa97d248b
commit
c00f0f55fc
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ RenderWebGL.prototype.setDrawableOrder = function (
|
|||
newIndex += oldIndex;
|
||||
}
|
||||
if (opt_min) {
|
||||
newIndex = Math.min(newIndex, opt_min);
|
||||
newIndex = Math.max(newIndex, opt_min);
|
||||
}
|
||||
newIndex = Math.max(newIndex, 0);
|
||||
// Insert at new index.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue