Skip to content

Commit

Permalink
Update ItemSet.js
Browse files Browse the repository at this point in the history
Changed threshold directions to fix almende#3003.
  • Loading branch information
daRoof authored Apr 17, 2019
1 parent eaff065 commit b756356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/timeline/component/ItemSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,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: Hammer.DIRECTION_HORIZONTAL});
this.hammer.get('pan').set({threshold:5, direction: Hammer.DIRECTION_ALL});

// single select (or unselect) when tapping an item
this.hammer.on('tap', this._onSelectItem.bind(this));
Expand Down

0 comments on commit b756356

Please sign in to comment.