|
|
@ -220,7 +220,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.
|
|
|
|
this.hammer.get('pan').set({threshold:5, direction: Hammer.DIRECTION_HORIZONTAL}); |
|
|
|
|
|
|
|
// single select (or unselect) when tapping an item
|
|
|
|
this.hammer.on('tap', this._onSelectItem.bind(this)); |
|
|
@ -235,7 +235,7 @@ ItemSet.prototype._create = function(){ |
|
|
|
this.groupHammer.on('panstart', this._onGroupDragStart.bind(this)); |
|
|
|
this.groupHammer.on('panmove', this._onGroupDrag.bind(this)); |
|
|
|
this.groupHammer.on('panend', this._onGroupDragEnd.bind(this)); |
|
|
|
this.groupHammer.get('pan').set({threshold:5, direction:30}); |
|
|
|
this.groupHammer.get('pan').set({threshold:5, direction: Hammer.DIRECTION_HORIZONTAL}); |
|
|
|
|
|
|
|
// attach to the DOM
|
|
|
|
this.show(); |
|
|
|