mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Clean up FutureSplash code a bit.
This commit is contained in:
parent
c847dd2cc0
commit
5df30c4a7a
1 changed files with 4 additions and 6 deletions
|
@ -80,14 +80,12 @@
|
|||
if (!point.fixed && location.distance < size.height / 4) {
|
||||
var y = event.point.y;
|
||||
point.y += (y - point.y) / 6;
|
||||
if (segment.previous && !segment.previous.point.fixed) {
|
||||
var previous = segment.previous.point;
|
||||
var previous = segment.previous && segment.previous.point;
|
||||
var next = segment.next && segment.next.point;
|
||||
if (previous && !previous.fixed)
|
||||
previous.y += (y - previous.y) / 24;
|
||||
}
|
||||
if (segment.next && !segment.next.point.fixed) {
|
||||
var next = segment.next.point;
|
||||
if (next && !next.fixed)
|
||||
next.y += (y - next.y) / 24;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue