mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(modal): move keyboard behavior for gestures into component (#24650)
This commit is contained in:
@@ -231,9 +231,6 @@ export const createGesture = (config: GestureConfig): Gesture => {
|
||||
destroy() {
|
||||
gesture.destroy();
|
||||
pointerEvents.destroy();
|
||||
if (config.onDestroy !== undefined) {
|
||||
config.onDestroy();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -328,11 +325,6 @@ export interface GestureConfig {
|
||||
onStart?: GestureCallback;
|
||||
onMove?: GestureCallback;
|
||||
onEnd?: GestureCallback;
|
||||
/**
|
||||
* Callback to extend the behavior when a gesture
|
||||
* handler is destroyed.
|
||||
*/
|
||||
onDestroy?: () => void;
|
||||
notCaptured?: GestureCallback;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user