Browse Source

Merge pull request #63 from dminkovsky/next-element-sibling

Fixed typo
pull/101/head
Lebedev Konstantin 11 years ago
parent
commit
e83e81c87c
  1. 4
      Sortable.js

4
Sortable.js

@ -345,7 +345,7 @@
, skew = (floating ? (evt.clientX - rect.left)/width : (evt.clientY - rect.top)/height) > .5
, isWide = (target.offsetWidth > dragEl.offsetWidth)
, isLong = (target.offsetHeight > dragEl.offsetHeight)
, nextSibling = target.nextSibling
, nextSibling = target.nextElementSibling
, after
;
@ -355,7 +355,7 @@
if( floating ){
after = (target.previousElementSibling === dragEl) && !isWide || (skew > .5) && isWide
} else {
after = (target.nextElementSibling !== dragEl) && !isLong || (skew > .5) && isLong;
after = (nextSibling !== dragEl) && !isLong || (skew > .5) && isLong;
}
if( after && !nextSibling ){

Loading…
Cancel
Save