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 b119d35 commit 749b110Copy full SHA for 749b110
src/Drawable.js
@@ -37,6 +37,8 @@ const getLocalPosition = (drawable, vec) => {
37
// localPosition matches that transformation.
38
localPosition[0] = 0.5 - (((v0 * m[0]) + (v1 * m[4]) + m[12]) / d);
39
localPosition[1] = (((v0 * m[1]) + (v1 * m[5]) + m[13]) / d) + 0.5;
40
+ // Fix floating point issues near 0.
41
+ // TODO: Check if this can be removed after render pull 479 is merged
42
if (Math.abs(localPosition[0] < 1e-8)) localPosition[0] = 0;
43
if (Math.abs(localPosition[1] < 1e-8)) localPosition[1] = 0;
44
// Apply texture effect transform if the localPosition is within the drawable's space,
0 commit comments