MCPcopy Create free account
hub / github.com/melonjs/melonJS / leave

Method leave

packages/melonjs/src/renderable/ui/uibaseelement.ts:185–197  ·  view source on GitHub ↗

* function callback for the pointerLeave event * @ignore

(event: Pointer)

Source from the content-addressed store, hash-verified

183 * @ignore
184 */
185 leave(event: Pointer): void {
186 this.hover = false;
187 this.isDirty = true;
188 if (this.isDraggable) {
189 // unregister on the global pointermove event
190 // eslint-disable-next-line @typescript-eslint/unbound-method
191 off(POINTERMOVE, this.pointerMove, this);
192 vector2dPool.release(this.grabOffset!);
193 this.grabOffset = undefined;
194 }
195 this.release(event);
196 this.onOut(event);
197 }
198
199 /**
200 * function called when the pointer is leaving the object area

Callers 2

onActivateEventMethod · 0.95
ui.spec.jsFile · 0.45

Calls 4

releaseMethod · 0.95
onOutMethod · 0.95
offFunction · 0.90
releaseMethod · 0.65

Tested by

no test coverage detected