We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffa53a6 commit ce288eaCopy full SHA for ce288ea
src/Drawable.js
@@ -38,7 +38,8 @@ const getLocalPosition = (drawable, vec) => {
38
// localPosition matches that transformation.
39
localPosition[0] = 0.5 - (((v0 * m[0]) + (v1 * m[4]) + m[12]) / d);
40
localPosition[1] = (((v0 * m[1]) + (v1 * m[5]) + m[13]) / d) + 0.5;
41
- // Fix floating point issues near 0.
+ // Fix floating point issues near 0. Filed https://github.com/LLK/scratch-render/issues/688 that
42
+ // they're happening in the first place.
43
// TODO: Check if this can be removed after render pull 479 is merged
44
if (Math.abs(localPosition[0]) < FLOATING_POINT_ERROR_ALLOWANCE) localPosition[0] = 0;
45
if (Math.abs(localPosition[1]) < FLOATING_POINT_ERROR_ALLOWANCE) localPosition[1] = 0;
0 commit comments