From cb08ba973bb56307501eb424b566996f7790b26c Mon Sep 17 00:00:00 2001 From: Cam Wiegert Date: Wed, 8 Aug 2018 12:25:50 -0500 Subject: [PATCH] chore(toggle): revert gesture changes from outdated branch --- core/src/components/toggle/toggle.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/components/toggle/toggle.tsx b/core/src/components/toggle/toggle.tsx index 507d319b15..643c5e70eb 100644 --- a/core/src/components/toggle/toggle.tsx +++ b/core/src/components/toggle/toggle.tsx @@ -94,7 +94,7 @@ export class Toggle implements CheckboxInput { 'interactive-disabled': this.disabled, }); if (this.gesture) { - this.gesture.disabled = this.disabled; + this.gesture.setDisabled(this.disabled); } } @@ -112,11 +112,11 @@ export class Toggle implements CheckboxInput { } } - this.gesture = (await import('../../utils/gesture/gesture')).create({ + this.gesture = (await import('../../utils/gesture/gesture')).createGesture({ el: this.el, queue: this.queue, gestureName: 'toggle', - gesturePriority: 30, + gesturePriority: 100, threshold: 0, onStart: this.onDragStart.bind(this), onMove: this.onDragMove.bind(this),