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

Method release

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

* function callback for the pointerup event * @ignore

(event: Pointer)

Source from the content-addressed store, hash-verified

210 * @ignore
211 */
212 release(event: Pointer): boolean | void {
213 if (!this.released) {
214 this.released = true;
215 this.isDirty = true;
216 timer.clearTimer(this.holdTimeout);
217 this.holdTimeout = -1;
218 return this.onRelease(event);
219 }
220 }
221
222 /**
223 * function called when the object is pressed and released (to be extended)

Callers 2

leaveMethod · 0.95
onActivateEventMethod · 0.95

Calls 2

onReleaseMethod · 0.95
clearTimerMethod · 0.80

Tested by

no test coverage detected