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

Method enter

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

* function callback for the pointerEnter event * @ignore

(event: Pointer)

Source from the content-addressed store, hash-verified

132 * @ignore
133 */
134 enter(event: Pointer): void {
135 this.hover = true;
136 this.isDirty = true;
137 if (this.isDraggable) {
138 // eslint-disable-next-line @typescript-eslint/unbound-method
139 on(POINTERMOVE, this.pointerMove, this);
140 // to memorize where we grab the object
141 this.grabOffset = vector2dPool.get(0, 0);
142 }
143 this.onOver(event);
144 }
145
146 /**
147 * pointermove function

Callers 2

onActivateEventMethod · 0.95
ui.spec.jsFile · 0.45

Calls 3

onOverMethod · 0.95
onFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected