HTML5 Canvas + Cesium JS

Hello,

I’ve noticed that when I create an HTML5 canvas on top of a Cesium JS viewer, the area of the canvas overrides my mouse input. So for example, if I wish to spin the camera while pointing at a 3D model, it won’t spin when the mouse is over the canvas, but will when it leaves that area.

Is there a way to allow Cesium JS to ignore the canvas area or similar solution?

Thanks,
Nick

Hiya,

This is strictly speaking not a Cesium issue, but a more generic browser and markup issue. A Google search might lead you in the right direction;

https://www.google.com/search?q=pass+mouse+events+through+canvas&rlz=1C1CHBF_en-GBAU840AU840&oq=pass+mouse+events+through+canv&aqs=chrome.1.69i57j0i22i30.16040j1j7&sourceid=chrome&ie=UTF-8

Cheers,

Alex

2 Likes