Browse Source

* v0.4.1

pull/101/head
RubaXa 11 years ago
parent
commit
5a16075338
  1. 8
      Sortable.js
  2. 4
      Sortable.min.js
  3. 2
      bower.json
  4. 2
      component.json
  5. 2
      package.json

8
Sortable.js

@ -317,9 +317,9 @@
, width = rect.right - rect.left
, height = rect.bottom - rect.top
, floating = /left|right|inline/.test(lastCSS.cssFloat + lastCSS.display)
, skew = (floating ? (evt.clientX - rect.left)/width : (evt.clientY - rect.top)/height) > .5
, isWide = (target.offsetWidth > dragEl.offsetWidth)
, isLong = (target.offsetHeight > dragEl.offsetHeight)
, halfway = (floating ? (evt.clientX - rect.left)/width : (evt.clientY - rect.top)/height) > .5
, nextSibling = target.nextElementSibling
, after
;
@ -328,9 +328,9 @@
setTimeout(_unsilent, 30);
if( floating ){
after = (target.previousElementSibling === dragEl) && !isWide || (skew > .5) && isWide
after = (target.previousElementSibling === dragEl) && !isWide || halfway && isWide
} else {
after = (nextSibling !== dragEl) && !isLong || (skew > .5) && isLong;
after = (nextSibling !== dragEl) && !isLong || halfway && isLong;
}
if( after && !nextSibling ){
@ -621,7 +621,7 @@
};
Sortable.version = '0.4.0';
Sortable.version = '0.4.1';
// Export

4
Sortable.min.js vendored

File diff suppressed because one or more lines are too long

2
bower.json

@ -1,7 +1,7 @@
{
"name": "Sortable",
"main": "Sortable.js",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "http://rubaxa.github.io/Sortable/",
"authors": [
"RubaXa <ibnRubaXa@gmail.com>"

2
component.json

@ -1,7 +1,7 @@
{
"name": "Sortable",
"main": "Sortable.js",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "http://rubaxa.github.io/Sortable/",
"repo": "RubaXa/Sortable",
"authors": [

2
package.json

@ -1,7 +1,7 @@
{
"name": "sortable",
"exportName": "Sortable",
"version": "0.4.0",
"version": "0.4.1",
"devDependencies": {
"grunt": "*",
"grunt-version": "*",

Loading…
Cancel
Save