File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ function userAgent(pattern) {
22 return ! ! navigator . userAgent . match ( pattern ) ;
33}
44
5- const IE11OrLess = /*@__PURE__ */ userAgent ( / (?: T r i d e n t .* r v [ : ] ? 1 1 \. | m s i e | i e m o b i l e ) / i) ;
5+ const IE11OrLess = /*@__PURE__ */ userAgent ( / (?: T r i d e n t .* r v [ : ] ? 1 1 \. | m s i e | i e m o b i l e | W i n d o w s P h o n e ) / i) ;
66const Edge = /*@__PURE__ */ userAgent ( / E d g e / i) ;
77const FireFox = /*@__PURE__ */ userAgent ( / f i r e f o x / i) ;
88const Safari = /*@__PURE__ */ userAgent ( / s a f a r i / i) && ! userAgent ( / c h r o m e / i) && ! userAgent ( / a n d r o i d / i) ;
Original file line number Diff line number Diff line change @@ -377,7 +377,7 @@ function Sortable(el, options) {
377377 dataIdAttr : 'data-id' ,
378378 delay : 0 ,
379379 delayOnTouchOnly : false ,
380- touchStartThreshold : Number . parseInt ( window . devicePixelRatio , 10 ) || 1 ,
380+ touchStartThreshold : ( Number . parseInt ? Number : window ) . parseInt ( window . devicePixelRatio , 10 ) || 1 ,
381381 forceFallback : false ,
382382 fallbackClass : 'sortable-fallback' ,
383383 fallbackOnBody : false ,
@@ -666,7 +666,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
666666 } ,
667667
668668 _triggerDragStart : function ( /** Event */ evt , /** Touch */ touch ) {
669- touch = touch || ( evt . pointerType == 'touch' ? evt : null ) ;
669+ touch = touch || ( evt . pointerType == 'touch' && evt ) ;
670670
671671 if ( ! this . nativeDraggable || touch ) {
672672 if ( this . options . supportPointer ) {
You can’t perform that action at this time.
0 commit comments