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 9af3bcd commit 505bd52Copy full SHA for 505bd52
MotionMark/resources/extensions.js
@@ -419,10 +419,10 @@ class UnitBezier {
419
420
for (t2 = x, i = 0; i < 8; ++i) {
421
x2 = this.sampleX(t2) - x;
422
- if (Math.abs(x2) < this.epsilon)
+ if (Math.abs(x2) < UnitBezier.epsilon)
423
return t2;
424
d2 = this.sampleDerivativeX(t2);
425
- if (Math.abs(d2) < this.derivativeEpsilon)
+ if (Math.abs(d2) < UnitBezier.derivativeEpsilon)
426
break;
427
t2 = t2 - x2 / d2;
428
}
@@ -438,7 +438,7 @@ class UnitBezier {
438
439
while (t0 < t1) {
440
x2 = this.sampleX(t2);
441
- if (Math.abs(x2 - x) < this.epsilon)
+ if (Math.abs(x2 - x) < UnitBezier.epsilon)
442
443
if (x > x2)
444
t0 = t2;
0 commit comments