onPointerDown strangeness


Another GUI question… If you click on the container, the pointer down will be registered. If you click again, it doesn’t look like it is. Even if you move the mouse off the container, click somewhere else on the canvas, and then click on it again, same result.

If however, you click out of the canvas and onto the playground text area, and then click back on the container, the pointer down is registered again :thinking:

Strange behavior, but maybe I’m missing something? Looks to function like this on both Chrome and Firefox, haven’t tested anything else yet.

This behavior seems to be unique to the container, and doesn’t afflict other child controls like ‘Button’. I’d rather not use button though, and am instead constructing custom GUI components at a higher level in a similar fashion to the DOM (nested divs effectively).

You should set isPointerBlocker = true on the GUI element:


1 Like

Of course, thank-you!