Skip to content

Commit

Permalink
1.15.6
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Nov 28, 2024
1 parent 2217239 commit 63ecb31
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 21 deletions.
9 changes: 5 additions & 4 deletions Sortable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.5
* Sortable 1.15.6
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -134,7 +134,7 @@
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.5";
var version = "1.15.6";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1127,7 +1127,8 @@
x: 0,
y: 0
},
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
emptyInsertThreshold: 5
};
PluginManager.initializePlugins(this, el, defaults);
Expand Down Expand Up @@ -1418,7 +1419,7 @@
_nextTick(function () {
document.selection.empty();
});
} else if (this.nativeDraggable) {
} else {
window.getSelection().removeAllRanges();
}
} catch (err) {}
Expand Down
4 changes: 2 additions & 2 deletions Sortable.min.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions modular/sortable.complete.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.5
* Sortable 1.15.6
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -128,7 +128,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.5";
var version = "1.15.6";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1121,7 +1121,8 @@ function Sortable(el, options) {
x: 0,
y: 0
},
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
emptyInsertThreshold: 5
};
PluginManager.initializePlugins(this, el, defaults);
Expand Down Expand Up @@ -1412,7 +1413,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
_nextTick(function () {
document.selection.empty();
});
} else if (this.nativeDraggable) {
} else {
window.getSelection().removeAllRanges();
}
} catch (err) {}
Expand Down
9 changes: 5 additions & 4 deletions modular/sortable.core.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.5
* Sortable 1.15.6
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -128,7 +128,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.5";
var version = "1.15.6";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1121,7 +1121,8 @@ function Sortable(el, options) {
x: 0,
y: 0
},
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
emptyInsertThreshold: 5
};
PluginManager.initializePlugins(this, el, defaults);
Expand Down Expand Up @@ -1412,7 +1413,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
_nextTick(function () {
document.selection.empty();
});
} else if (this.nativeDraggable) {
} else {
window.getSelection().removeAllRanges();
}
} catch (err) {}
Expand Down
9 changes: 5 additions & 4 deletions modular/sortable.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**!
* Sortable 1.15.5
* Sortable 1.15.6
* @author RubaXa <[email protected]>
* @author owenm <[email protected]>
* @license MIT
Expand Down Expand Up @@ -128,7 +128,7 @@ function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}

var version = "1.15.5";
var version = "1.15.6";

function userAgent(pattern) {
if (typeof window !== 'undefined' && window.navigator) {
Expand Down Expand Up @@ -1121,7 +1121,8 @@ function Sortable(el, options) {
x: 0,
y: 0
},
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
emptyInsertThreshold: 5
};
PluginManager.initializePlugins(this, el, defaults);
Expand Down Expand Up @@ -1412,7 +1413,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
_nextTick(function () {
document.selection.empty();
});
} else if (this.nativeDraggable) {
} else {
window.getSelection().removeAllRanges();
}
} catch (err) {}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sortablejs",
"exportName": "Sortable",
"version": "1.15.5",
"version": "1.15.6",
"devDependencies": {
"@babel/core": "^7.4.4",
"@babel/plugin-transform-object-assign": "^7.2.0",
Expand Down

0 comments on commit 63ecb31

Please sign in to comment.