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

Method onRelease

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

Source from the content-addressed store, hash-verified

67 }
68
69 override onRelease() {
70 this.setRegion(this.unclicked_region);
71 this.translate(
72 0,
73 -(this.height - (this.clicked_region as { height: number }).height),
74 );
75 return false;
76 }
77}
78
79class CheckBoxUI extends UISpriteElement {

Callers

nothing calls this directly

Calls 2

setRegionMethod · 0.45
translateMethod · 0.45

Tested by

no test coverage detected