GameClick CallableGameClick(event: PointerEvent): voidOnly fire canvas clicks via the click event, lest there is the possibility of a canvas click and DOM click firing twice on certain platforms (e.g. Android) due to said mobile browsers firing both touch<x> and mouse<x> eventsParametersevent: PointerEventReturns void
Only fire canvas clicks via the
clickevent, lest there is the possibility of a canvas click and DOM click firing twice on certain platforms (e.g. Android) due to said mobile browsers firing bothtouch<x>andmouse<x>events