We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8d4c51 commit 4e60597Copy full SHA for 4e60597
js/views/listView.js
@@ -441,10 +441,15 @@
441
442
// Or check if this is a swipe to the side drag
443
else if(!this._didDragUpOrDown && (e.gesture.direction == 'left' || e.gesture.direction == 'right') && Math.abs(e.gesture.deltaX) > 5) {
444
- this._dragOp = new SlideDrag({ el: this.el });
445
- this._dragOp.start(e);
446
- e.preventDefault();
447
- return;
+
+ // Make sure this is an item with buttons
+ var item = this._getItem(e.target);
+ if(item && item.querySelector('.item-options')) {
448
+ this._dragOp = new SlideDrag({ el: this.el });
449
+ this._dragOp.start(e);
450
+ e.preventDefault();
451
+ return;
452
+ }
453
}
454
455
// We aren't handling it, so pass it up the chain
0 commit comments