mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Use the right parameter in the previous curve to determine slope change.
This commit is contained in:
parent
c20b32f748
commit
18c5c3b7c4
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ PathItem.inject(new function() {
|
||||||
// not a crossing.
|
// not a crossing.
|
||||||
if (Numerical.isZero(slope) && !Curve.isLinear(values)
|
if (Numerical.isZero(slope) && !Curve.isLinear(values)
|
||||||
|| t < tMin && slope * Curve.evaluate(
|
|| t < tMin && slope * Curve.evaluate(
|
||||||
curve.previous.values, t, 1).y < 0) {
|
curve.previous.values, 1, 1).y < 0) {
|
||||||
if (testContains && x0 >= xBefore && x0 <= xAfter) {
|
if (testContains && x0 >= xBefore && x0 <= xAfter) {
|
||||||
++windLeft;
|
++windLeft;
|
||||||
++windRight;
|
++windRight;
|
||||||
|
|
Loading…
Reference in a new issue