Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
open-source
gridstack.js
Commits
805e566c
Commit
805e566c
authored
Sep 11, 2017
by
radiolips
Committed by
GitHub
Sep 11, 2017
Browse files
Merge pull request #587 from hairyheron/master
Avoid collision check of node with itself. Fixes #586
parents
0fa2a8f6
ae6daac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gridstack.js
View file @
805e566c
...
...
@@ -252,6 +252,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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment