Skip to content

Commit ce288ea

Browse files
author
DD Liu
committed
link to file
1 parent ffa53a6 commit ce288ea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Drawable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ const getLocalPosition = (drawable, vec) => {
3838
// localPosition matches that transformation.
3939
localPosition[0] = 0.5 - (((v0 * m[0]) + (v1 * m[4]) + m[12]) / d);
4040
localPosition[1] = (((v0 * m[1]) + (v1 * m[5]) + m[13]) / d) + 0.5;
41-
// Fix floating point issues near 0.
41+
// Fix floating point issues near 0. Filed https://github.com/LLK/scratch-render/issues/688 that
42+
// they're happening in the first place.
4243
// TODO: Check if this can be removed after render pull 479 is merged
4344
if (Math.abs(localPosition[0]) < FLOATING_POINT_ERROR_ALLOWANCE) localPosition[0] = 0;
4445
if (Math.abs(localPosition[1]) < FLOATING_POINT_ERROR_ALLOWANCE) localPosition[1] = 0;

0 commit comments

Comments
 (0)