javascript - restricted area cursor on html page to a single zone only -


when open web page possible limit area of cursor? eg 200px x 200px area.

the cursor can navigated in area, cursor can not navigate area of ​​the screen. assuming monitor has resolution of 800 x 600, see whole page, cursor limited simple square on page, there way this? possible css ? or need use javascript or property of dom?

i forward answer, thanks.

good news, modern browsers catching pointer lock api. read more: https://developer.mozilla.org/en-us/docs/web/api/pointer_lock_api


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -