Disable website scroll when using middle mouse

Hi!

Straightforward one; how do I disable website page being scrolled when I use middle mouse scroll in Babylon.js? The project is embedded on the website, roughly at 70% size from full.
“On hover” event > set disable html scroll function <> on “End hover” of babylon element?

Much appreciated!

renderCanvas.addEventListener(‘wheel’, evt => evt.preventDefault());

3 Likes