Skip to main content

Type Alias: FreezeCanvasScrolling()

FreezeCanvasScrolling: () => Promise<void>

Disable scrolling on canvas. This function modifies the behavior of the camera and input controls in the Babylon.js scene to prevent users from scrolling or zooming the canvas. In case you want to change camera zoom please use increaseZoom, decreaseZoom or setZoom methods. It also sets global variable on window.freezeScroll which is used in useBabylon hook.

Returns

Promise<void>