MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / onMove

Method onMove

core/src/components/toggle/toggle.tsx:283–288  ·  view source on GitHub ↗
(detail: GestureDetail)

Source from the content-addressed store, hash-verified

281 }
282
283 private onMove(detail: GestureDetail) {
284 if (shouldToggle(isRTL(this.el), this.checked, detail.deltaX, -10)) {
285 this.toggleChecked();
286 hapticSelection();
287 }
288 }
289
290 private onEnd(ev: GestureDetail) {
291 this.activated = false;

Callers 1

ToggleClass · 0.95

Calls 4

toggleCheckedMethod · 0.95
isRTLFunction · 0.90
hapticSelectionFunction · 0.90
shouldToggleFunction · 0.85

Tested by

no test coverage detected