mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -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.
|
||||
if (Numerical.isZero(slope) && !Curve.isLinear(values)
|
||||
|| 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) {
|
||||
++windLeft;
|
||||
++windRight;
|
||||
|
|
Loading…
Reference in a new issue