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.
This commit is contained in:
Manuel Mtz-Almeida
2017-09-16 23:20:38 -04:00
parent 0fca610b7d
commit 612947c072

View File

@ -160,7 +160,7 @@ export class Toggle implements BooleanInputComponent {
'gesturePriority': 30, 'gesturePriority': 30,
'type': 'pan,press', 'type': 'pan,press',
'direction': 'x', 'direction': 'x',
'threshold': 20, 'threshold': 0,
'attachTo': 'parent' 'attachTo': 'parent'
}}> }}>
<div class='toggle-icon'> <div class='toggle-icon'>