MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / enable

Function enable

core/src/utils/gesture/index.ts:216–225  ·  view source on GitHub ↗
(enable = true)

Source from the content-addressed store, hash-verified

214
215 return {
216 enable(enable = true) {
217 if (!enable) {
218 if (hasCapturedPan) {
219 pointerUp(undefined);
220 }
221
222 reset();
223 }
224 pointerEvents.enable(enable);
225 },
226 destroy() {
227 gesture.destroy();
228 pointerEvents.destroy();

Callers

nothing calls this directly

Calls 3

pointerUpFunction · 0.70
resetFunction · 0.70
enableMethod · 0.65

Tested by

no test coverage detected