mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
commit
c847dd2cc0
1 changed files with 2 additions and 2 deletions
|
@ -80,11 +80,11 @@
|
|||
if (!point.fixed && location.distance < size.height / 4) {
|
||||
var y = event.point.y;
|
||||
point.y += (y - point.y) / 6;
|
||||
if (segment.previous && !segment.previous.fixed) {
|
||||
if (segment.previous && !segment.previous.point.fixed) {
|
||||
var previous = segment.previous.point;
|
||||
previous.y += (y - previous.y) / 24;
|
||||
}
|
||||
if (segment.next && !segment.next.fixed) {
|
||||
if (segment.next && !segment.next.point.fixed) {
|
||||
var next = segment.next.point;
|
||||
next.y += (y - next.y) / 24;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue