diff --git a/Sortable.js b/Sortable.js index 3186fe4654cbf16f62bdf3c7d2d285573b1ef3d3..29c69da9175d1663e64121942ecdc28e716985f9 100644 --- a/Sortable.js +++ b/Sortable.js @@ -95,6 +95,7 @@ IE11OrLess = !!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie|iemobile)/i), Edge = !!navigator.userAgent.match(/Edge/i), // FireFox = !!navigator.userAgent.match(/firefox/i), + Safari = !!(navigator.userAgent.match(/safari/i) && !navigator.userAgent.match(/chrome/i) && !navigator.userAgent.match(/android/i)), CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float', @@ -730,8 +731,9 @@ // IE does not seem to have native autoscroll, // Edge's autoscroll seems too conditional, + // MACOS Safari does not have autoscroll, // Firefox and Chrome are good - if (fallback || Edge || IE11OrLess) { + if (fallback || Edge || IE11OrLess || Safari) { _autoScroll(evt, _this.options, elem, fallback); // Listener for pointer element change