diff --git a/Sortable.js b/Sortable.js index a1f6fde..0acdb32 100644 --- a/Sortable.js +++ b/Sortable.js @@ -308,7 +308,7 @@ var _this = this, el = this.el, options = this.options, - preventOnFilter = preventOnFilter.options, + preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0], target = (touch || evt).target, @@ -325,9 +325,6 @@ return; // only left button or enabled } - if (options.handle && !_closest(originalTarget, options.handle, el)) { - return; - } target = _closest(target, options.draggable, el); @@ -367,6 +364,10 @@ } } + if (options.handle && !_closest(originalTarget, options.handle, el)) { + return; + } + // Prepare `dragstart` this._prepareDragStart(evt, touch, target, startIndex); },