From 4d4e7714378d849c24e0076021d249b782bc5c70 Mon Sep 17 00:00:00 2001 From: daRoof <35702045+daRoof@users.noreply.github.com> Date: Wed, 17 Apr 2019 22:48:49 +0200 Subject: [PATCH 1/3] Update ItemSet.js Changed threshold directions to fix #3003. --- lib/timeline/component/ItemSet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/ItemSet.js b/lib/timeline/component/ItemSet.js index 5e615b7af..9363ec3fc 100644 --- a/lib/timeline/component/ItemSet.js +++ b/lib/timeline/component/ItemSet.js @@ -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)); From 8b5acf00d8dc2e398210e8588a55ed1cda6e863f Mon Sep 17 00:00:00 2001 From: daRoof <35702045+daRoof@users.noreply.github.com> Date: Wed, 17 Apr 2019 22:50:54 +0200 Subject: [PATCH 2/3] Update Core.js Changed threshold directions to fix #3003. --- lib/timeline/Core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/Core.js b/lib/timeline/Core.js index fa843ceff..5589e73f6 100644 --- a/lib/timeline/Core.js +++ b/lib/timeline/Core.js @@ -138,7 +138,7 @@ Core.prototype._create = function (container) { this.hammer = new Hammer(this.dom.root); var pinchRecognizer = this.hammer.get('pinch').set({enable: true}); pinchRecognizer && hammerUtil.disablePreventDefaultVertically(pinchRecognizer); - this.hammer.get('pan').set({threshold:5, direction: Hammer.DIRECTION_HORIZONTAL}); + this.hammer.get('pan').set({threshold:5, direction: Hammer.DIRECTION_ALL}); this.listeners = {}; var events = [ From 2ca61fdec8e4e25b297108f122ad48d8f649ebf0 Mon Sep 17 00:00:00 2001 From: daRoof <35702045+daRoof@users.noreply.github.com> Date: Wed, 17 Apr 2019 22:52:11 +0200 Subject: [PATCH 3/3] Update CustomTime.js Changed threshold directions to fix #3003. --- lib/timeline/component/CustomTime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timeline/component/CustomTime.js b/lib/timeline/component/CustomTime.js index 73b1895a4..6c7820df7 100644 --- a/lib/timeline/component/CustomTime.js +++ b/lib/timeline/component/CustomTime.js @@ -105,7 +105,7 @@ CustomTime.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 }); } };