Skip to content

Commit 63ecb31

Browse files
committed
1.15.6
1 parent 2217239 commit 63ecb31

7 files changed

+25
-21
lines changed

Sortable.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.5
2+
* Sortable 1.15.6
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -134,7 +134,7 @@
134134
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
135135
}
136136

137-
var version = "1.15.5";
137+
var version = "1.15.6";
138138

139139
function userAgent(pattern) {
140140
if (typeof window !== 'undefined' && window.navigator) {
@@ -1127,7 +1127,8 @@
11271127
x: 0,
11281128
y: 0
11291129
},
1130-
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1130+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1131+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
11311132
emptyInsertThreshold: 5
11321133
};
11331134
PluginManager.initializePlugins(this, el, defaults);
@@ -1418,7 +1419,7 @@
14181419
_nextTick(function () {
14191420
document.selection.empty();
14201421
});
1421-
} else if (this.nativeDraggable) {
1422+
} else {
14221423
window.getSelection().removeAllRanges();
14231424
}
14241425
} catch (err) {}

Sortable.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modular/sortable.complete.esm.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.5
2+
* Sortable 1.15.6
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -128,7 +128,7 @@ function _nonIterableSpread() {
128128
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129129
}
130130

131-
var version = "1.15.5";
131+
var version = "1.15.6";
132132

133133
function userAgent(pattern) {
134134
if (typeof window !== 'undefined' && window.navigator) {
@@ -1121,7 +1121,8 @@ function Sortable(el, options) {
11211121
x: 0,
11221122
y: 0
11231123
},
1124-
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1124+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1125+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
11251126
emptyInsertThreshold: 5
11261127
};
11271128
PluginManager.initializePlugins(this, el, defaults);
@@ -1412,7 +1413,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
14121413
_nextTick(function () {
14131414
document.selection.empty();
14141415
});
1415-
} else if (this.nativeDraggable) {
1416+
} else {
14161417
window.getSelection().removeAllRanges();
14171418
}
14181419
} catch (err) {}

modular/sortable.core.esm.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.5
2+
* Sortable 1.15.6
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -128,7 +128,7 @@ function _nonIterableSpread() {
128128
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129129
}
130130

131-
var version = "1.15.5";
131+
var version = "1.15.6";
132132

133133
function userAgent(pattern) {
134134
if (typeof window !== 'undefined' && window.navigator) {
@@ -1121,7 +1121,8 @@ function Sortable(el, options) {
11211121
x: 0,
11221122
y: 0
11231123
},
1124-
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1124+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1125+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
11251126
emptyInsertThreshold: 5
11261127
};
11271128
PluginManager.initializePlugins(this, el, defaults);
@@ -1412,7 +1413,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
14121413
_nextTick(function () {
14131414
document.selection.empty();
14141415
});
1415-
} else if (this.nativeDraggable) {
1416+
} else {
14161417
window.getSelection().removeAllRanges();
14171418
}
14181419
} catch (err) {}

modular/sortable.esm.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.5
2+
* Sortable 1.15.6
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -128,7 +128,7 @@ function _nonIterableSpread() {
128128
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129129
}
130130

131-
var version = "1.15.5";
131+
var version = "1.15.6";
132132

133133
function userAgent(pattern) {
134134
if (typeof window !== 'undefined' && window.navigator) {
@@ -1121,7 +1121,8 @@ function Sortable(el, options) {
11211121
x: 0,
11221122
y: 0
11231123
},
1124-
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1124+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1125+
supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
11251126
emptyInsertThreshold: 5
11261127
};
11271128
PluginManager.initializePlugins(this, el, defaults);
@@ -1412,7 +1413,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
14121413
_nextTick(function () {
14131414
document.selection.empty();
14141415
});
1415-
} else if (this.nativeDraggable) {
1416+
} else {
14161417
window.getSelection().removeAllRanges();
14171418
}
14181419
} catch (err) {}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sortablejs",
33
"exportName": "Sortable",
4-
"version": "1.15.5",
4+
"version": "1.15.6",
55
"devDependencies": {
66
"@babel/core": "^7.4.4",
77
"@babel/plugin-transform-object-assign": "^7.2.0",

0 commit comments

Comments
 (0)