|
|
@ -198,6 +198,7 @@ ItemSet.prototype._create = function(){ |
|
|
|
this.hammer.on('panstart', this._onDragStart.bind(this)); |
|
|
|
this.hammer.on('panmove', this._onDrag.bind(this)); |
|
|
|
this.hammer.on('panend', this._onDragEnd.bind(this)); |
|
|
|
this.hammer.get('pan').set({threshold:5, direction:30}); // 30 is ALL_DIRECTIONS in hammer.
|
|
|
|
|
|
|
|
// single select (or unselect) when tapping an item
|
|
|
|
this.hammer.on('tap', this._onSelectItem.bind(this)); |
|
|
|