mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
No need to double tolerances here.
This commit is contained in:
parent
68c53534d6
commit
6bb6002d1a
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ PathItem.inject(new function() {
|
||||||
if (length <= curveLength) {
|
if (length <= curveLength) {
|
||||||
// If the selected location on the curve falls onto its
|
// If the selected location on the curve falls onto its
|
||||||
// beginning or end, use the curve's center instead.
|
// beginning or end, use the curve's center instead.
|
||||||
if (length <= 2 * tolerance
|
if (length <= tolerance
|
||||||
|| curveLength - length <= 2 * tolerance)
|
|| curveLength - length <= tolerance)
|
||||||
length = curveLength / 2;
|
length = curveLength / 2;
|
||||||
var curve = node.segment.getCurve(),
|
var curve = node.segment.getCurve(),
|
||||||
pt = curve.getPointAt(length),
|
pt = curve.getPointAt(length),
|
||||||
|
|
Loading…
Reference in a new issue