11/**!
2- * Sortable 1.10.1
2+ * Sortable 1.10.2
33 * @author RubaXa <trash@rubaxa.org>
44 * @author owenm <owen23355@gmail.com>
55 * @license MIT
@@ -126,7 +126,7 @@ function _nonIterableSpread() {
126126 throw new TypeError ( "Invalid attempt to spread non-iterable instance" ) ;
127127}
128128
129- var version = "1.10.1 " ;
129+ var version = "1.10.2 " ;
130130
131131function userAgent ( pattern ) {
132132 if ( typeof window !== 'undefined' && window . navigator ) {
@@ -260,7 +260,7 @@ function matrix(el, selfOnly) {
260260 } while ( ! selfOnly && ( el = el . parentNode ) ) ;
261261 }
262262
263- var matrixFn = window . DOMMatrix || window . WebKitCSSMatrix || window . CSSMatrix ;
263+ var matrixFn = window . DOMMatrix || window . WebKitCSSMatrix || window . CSSMatrix || window . MSCSSMatrix ;
264264 /*jshint -W056 */
265265
266266 return matrixFn && new matrixFn ( appliedTransforms ) ;
@@ -285,10 +285,12 @@ function find(ctx, tagName, iterator) {
285285}
286286
287287function getWindowScrollingElement ( ) {
288- if ( IE11OrLess ) {
289- return document . documentElement ;
288+ var scrollingElement = document . scrollingElement ;
289+
290+ if ( scrollingElement ) {
291+ return scrollingElement ;
290292 } else {
291- return document . scrollingElement ;
293+ return document . documentElement ;
292294 }
293295}
294296/**
@@ -1625,7 +1627,7 @@ Sortable.prototype =
16251627 fallbackTolerance = options . fallbackTolerance ,
16261628 fallbackOffset = options . fallbackOffset ,
16271629 touch = evt . touches ? evt . touches [ 0 ] : evt ,
1628- ghostMatrix = ghostEl && matrix ( ghostEl ) ,
1630+ ghostMatrix = ghostEl && matrix ( ghostEl , true ) ,
16291631 scaleX = ghostEl && ghostMatrix && ghostMatrix . a ,
16301632 scaleY = ghostEl && ghostMatrix && ghostMatrix . d ,
16311633 relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset ( ghostRelativeParent ) ,
@@ -2130,6 +2132,8 @@ Sortable.prototype =
21302132 css ( document . body , 'user-select' , '' ) ;
21312133 }
21322134
2135+ css ( dragEl , 'transform' , '' ) ;
2136+
21332137 if ( evt ) {
21342138 if ( moved ) {
21352139 evt . cancelable && evt . preventDefault ( ) ;
@@ -2394,6 +2398,8 @@ Sortable.prototype =
23942398
23952399 this . _onDrop ( ) ;
23962400
2401+ this . _disableDelayedDragEvents ( ) ;
2402+
23972403 sortables . splice ( sortables . indexOf ( this . el ) , 1 ) ;
23982404 this . el = el = null ;
23992405 } ,
@@ -3534,7 +3540,7 @@ function MultiDragPlugin() {
35343540 off ( document , 'keyup' , this . _checkKeyUp ) ;
35353541 } ,
35363542 _deselectMultiDrag : function _deselectMultiDrag ( evt ) {
3537- if ( dragStarted ) return ; // Only deselect if selection is in this sortable
3543+ if ( typeof dragStarted !== "undefined" && dragStarted ) return ; // Only deselect if selection is in this sortable
35383544
35393545 if ( multiDragSortable !== this . sortable ) return ; // Only deselect if target is not item in this sortable
35403546
0 commit comments