diff --git a/Sortable.js b/Sortable.js index 2cab904bf..4466155ec 100644 --- a/Sortable.js +++ b/Sortable.js @@ -621,14 +621,14 @@ if (useFallback) { if (useFallback === 'touch') { // Bind touch events - _on(document, 'touchmove', this._onTouchMove); + _on(document, 'touchmove', this._onTouchMove, {passive: false}); _on(document, 'touchend', this._onDrop); _on(document, 'touchcancel', this._onDrop); - _on(document, 'pointermove', this._onTouchMove); + _on(document, 'pointermove', this._onTouchMove, {passive: false}); _on(document, 'pointerup', this._onDrop); } else { // Old brwoser - _on(document, 'mousemove', this._onTouchMove); + _on(document, 'mousemove', this._onTouchMove, {passive: false}); _on(document, 'mouseup', this._onDrop); } @@ -1110,8 +1110,11 @@ } - function _on(el, event, fn) { - el.addEventListener(event, fn, false); + function _on(el, event, fn, options) { + if (typeof(options)==='undefined'){ + options = false + } + el.addEventListener(event, fn, options); } diff --git a/package.json b/package.json index 384160999..77524e490 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "sortablejs", + "name": "@st-operations/sortablejs", "exportName": "Sortable", - "version": "1.5.0-rc1", + "version": "1.5.0-rc1-st1", "devDependencies": { "grunt": "*", "grunt-version": "*",