In Highlight Layer, mouse pointer moves over the mesh, but mouse position is not showing correct

Hi,

I am facing one issue with Mouse pointer. Not showing the correct mouse position. I have added the Highlight layer to my scene. On mouse move, the mesh will show blue color as highlight.
In the attached image, mouse pointer is bit away from the mesh, but still the mesh is highlight and shown in blue color. This is my issue. I have doubt, is this issue is due to resize on the canvas? so the mouse position got changed. Kindly help me on this issue.

Thanks

We will need a repro to help on the matter.

Does it work before you resize the canvas?

Hi Evgeni,

Yes, before resize of canvas, its working fine. After the resize of canvas, I am facing this issue.

Thanks.

Could you provide a small repro in the Playground so that it’s easier for us to look for what’s going on?

Hi,

This issue is fixed for me, after added the below line in setHeight() method(our own method).
engine.resize();

Thanks