Browse Source

#93: + check button on 'mousedown'

pull/101/head
RubaXa 10 years ago
parent
commit
2d5c307176
  1. 4
      Sortable.js
  2. 2
      Sortable.min.js

4
Sortable.js

@ -144,6 +144,10 @@
, filter = options.filter
;
if( evt.type === 'mousedown' && evt.button !== 0 ) {
return; // only left button
}
// Check filter
if( typeof filter === 'function' && filter.call(this, target, this) ){
_dispatchEvent(el, 'filter', target);

2
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save