This example was taken from
this
SO question, and slightly modified.
Steps:
- Clicking this div locks pointer on it (it calls
requestPointerLock)
- After clicking this div, while pointer lock is in effect,
wheel events should be cancelable, and preventDefault should work (i.e.
scrolling is prevented)