Skip to content

Commit

Permalink
SortableJS#1556: Fix delayOnTouchOnly for android
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Jul 3, 2019
1 parent b091623 commit c888c6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
options = this.options,
preventOnFilter = options.preventOnFilter,
type = evt.type,
touch = evt.touches && evt.touches[0],
touch = (evt.touches && evt.touches[0]) || (evt.pointerType && evt.pointerType === 'touch' && evt),
target = (touch || evt).target,
originalTarget = evt.target.shadowRoot && ((evt.path && evt.path[0]) || (evt.composedPath && evt.composedPath()[0])) || target,
filter = options.filter;
Expand Down Expand Up @@ -1888,7 +1888,7 @@ Sortable.mount = function(...plugins) {

plugins.forEach((plugin) => {
if (!plugin.prototype || !plugin.prototype.constructor) {
throw `Sortable: Mounted plugin must be a constructor function, not ${ {}.toString.call(el) }`;
throw `Sortable: Mounted plugin must be a constructor function, not ${ {}.toString.call(plugin) }`;
}
if (plugin.utils) Sortable.utils = { ...Sortable.utils, ...plugin.utils };

Expand Down

0 comments on commit c888c6b

Please sign in to comment.