onPointerClickObservable not working on desktop mode for GUI.Image

Hi guys,
onPointerClickObservable not working on desktop mode for BABYLON.GUI.Images.
Even the examples in playground are not working.
[https://www.babylonjs-playground.com/#XCPP9Y#3231](playground example)
In mobile mode, on clicking the image, a popup alert is displayed. But in desktop mode click is not fired.
One of my game in production is also not working on desktop mode. Any help will be appreciated. :slightly_smiling_face:
Thanks

You need to set isPointerBlocker to true for image controls to intercept mouse events:

https://www.babylonjs-playground.com/#XCPP9Y#3232

See Use the Babylon GUI doc

1 Like