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

Method onClick

packages/examples/src/examples/ui/ExampleUI.tsx:60–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 override onClick() {
61 this.translate(
62 0,
63 this.height - (this.clicked_region as { height: number }).height,
64 );
65 this.setRegion(this.clicked_region);
66 return false;
67 }
68
69 override onRelease() {
70 this.setRegion(this.unclicked_region);

Callers

nothing calls this directly

Calls 2

translateMethod · 0.45
setRegionMethod · 0.45

Tested by

no test coverage detected