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 00554df commit b119d35Copy full SHA for b119d35
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
+ if (Math.abs(localPosition[0] < 1e-8)) localPosition[0] = 0;
41
+ if (Math.abs(localPosition[1] < 1e-8)) localPosition[1] = 0;
42
// Apply texture effect transform if the localPosition is within the drawable's space,
43
// and any effects are currently active.
44
if (drawable.enabledEffects !== 0 &&
0 commit comments