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

Method hold

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

* function callback for the tap and hold timer event * @ignore

()

Source from the content-addressed store, hash-verified

234 * @ignore
235 */
236 hold(): void {
237 timer.clearTimer(this.holdTimeout);
238 this.holdTimeout = -1;
239 this.isDirty = true;
240 if (!this.released) {
241 this.onHold();
242 }
243 }
244
245 /**
246 * function called when the object is pressed and held<br>

Callers 1

clickedMethod · 0.95

Calls 2

onHoldMethod · 0.95
clearTimerMethod · 0.80

Tested by

no test coverage detected