From 612947c0727bd623b26440c30de3c438cc030c82 Mon Sep 17 00:00:00 2001 From: Manuel Mtz-Almeida Date: Sat, 16 Sep 2017 23:20:38 -0400 Subject: [PATCH] fix(toggle): improve swipe gesture In toggle it is safe to use threshold=0 since it has a small touch surface. In fact in Ionic 3.0 we don't use any pan detector at all for toggle. This changes makes ionic-core toggle match the Ionic 3 implementation. --- packages/core/src/components/toggle/toggle.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/toggle/toggle.tsx b/packages/core/src/components/toggle/toggle.tsx index db001be4f5..f83f255ddf 100644 --- a/packages/core/src/components/toggle/toggle.tsx +++ b/packages/core/src/components/toggle/toggle.tsx @@ -160,7 +160,7 @@ export class Toggle implements BooleanInputComponent { 'gesturePriority': 30, 'type': 'pan,press', 'direction': 'x', - 'threshold': 20, + 'threshold': 0, 'attachTo': 'parent' }}>