found a better fix than the in handle = null thing

This commit is contained in:
DD 2017-10-20 14:15:19 -04:00
parent 021930eadc
commit b79bb8174f

View file

@ -83,8 +83,7 @@ class LineMode extends React.Component {
}
this.path.lastSegment.handleOut = null; // Make sure added line isn't made curvy
this.path.lastSegment.handleIn = null; // Bug in paper.js? You need to remove the other handle too
this.path.add(this.hitResult.segment); // Add second point, which is what will move when dragged
this.path.add(this.hitResult.segment.point); // Add second point, which is what will move when dragged
}
// If not near other path, start a new path