mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(gesture): update Gesture API to latest (#19671)
This commit is contained in:
@ -92,8 +92,8 @@ export const createPointerEvents = (
|
||||
stopMouse();
|
||||
};
|
||||
|
||||
const setDisabled = (disabled: boolean) => {
|
||||
if (disabled) {
|
||||
const enable = (enable = true) => {
|
||||
if (!enable) {
|
||||
if (rmTouchStart) {
|
||||
rmTouchStart();
|
||||
}
|
||||
@ -114,12 +114,12 @@ export const createPointerEvents = (
|
||||
};
|
||||
|
||||
const destroy = () => {
|
||||
setDisabled(true);
|
||||
enable(false);
|
||||
pointerUp = pointerMove = pointerDown = undefined;
|
||||
};
|
||||
|
||||
return {
|
||||
setDisabled,
|
||||
enable,
|
||||
stop,
|
||||
destroy
|
||||
};
|
||||
|
Reference in New Issue
Block a user