Browse Source

revert index.html change + fix styling errors

pull/662/head
Jonas Zeitler 9 years ago
parent
commit
4094911e8f
  1. 10
      Sortable.js
  2. 2
      Sortable.min.js
  3. 2
      index.html

10
Sortable.js

@ -683,12 +683,12 @@
if (elTop === tgTop) { if (elTop === tgTop) {
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide; after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide;
} }
else if (target.previousElementSibling === dragEl || dragEl.previousElementSibling === target) { else if (target.previousElementSibling === dragEl || dragEl.previousElementSibling === target) {
after = (evt.clientY - targetRect.top) / height > 0.5; after = (evt.clientY - targetRect.top) / height > 0.5;
} else { } else {
after = tgTop > elTop; after = tgTop > elTop;
} }
} else { } else {
after = (nextSibling !== dragEl) && !isLong || halfway && isLong; after = (nextSibling !== dragEl) && !isLong || halfway && isLong;
} }

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

2
index.html

@ -49,7 +49,7 @@
<ul id="bar" class="block__list block__list_tags"> <ul id="bar" class="block__list block__list_tags">
<li>казнить</li> <li>казнить</li>
<li>,</li> <li>,</li>
<li style="height: 100px; width: 280px;">нельзя</li> <li>нельзя</li>
<li>помиловать</li> <li>помиловать</li>
</ul> </ul>
</div> </div>

Loading…
Cancel
Save