marble3 / mountOrientationPrompt
Function: mountOrientationPrompt()
mountOrientationPrompt(
container): () =>void
Defined in: src/orientation.ts:26
On a touchscreen, covers the page with a "rotate your device" prompt for as long as the device is held upright, with a button that rotates it for the player where the browser can. Does nothing on desktop (TOUCH_ENABLED false).
Parameters
container
HTMLElement
Returns
A function that removes the prompt.
() => void