mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -203,8 +203,12 @@ export const createGesture = (config: GestureConfig): Gesture => {
|
||||
|
||||
return {
|
||||
enable(enable = true) {
|
||||
if (!enable && hasCapturedPan) {
|
||||
pointerUp(undefined);
|
||||
if (!enable) {
|
||||
if (hasCapturedPan) {
|
||||
pointerUp(undefined);
|
||||
}
|
||||
|
||||
reset();
|
||||
}
|
||||
pointerEvents.enable(enable);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user