mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 23:58:13 +08:00
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:
@ -160,7 +160,7 @@ export class Toggle implements BooleanInputComponent {
|
||||
'gesturePriority': 30,
|
||||
'type': 'pan,press',
|
||||
'direction': 'x',
|
||||
'threshold': 20,
|
||||
'threshold': 0,
|
||||
'attachTo': 'parent'
|
||||
}}>
|
||||
<div class='toggle-icon'>
|
||||
|
||||
Reference in New Issue
Block a user