Commit ae6daac2 authored by Andreas Krüger's avatar Andreas Krüger
Browse files

Avoid collision check of node with itself. Fixes #586

parent c1c4ff8e
......@@ -233,6 +233,7 @@
var newY = n.y;
while (newY >= n._origY) {
var collisionNode = _.chain(this.nodes)
.take(i)
.find(_.bind(Utils._didCollide, {n: n, newY: newY}))
.value();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment