Ha, I saw this other day - it's fantastic :)
For anyone looking in the code for the 'trick' (of hiding the mouse), it's done by setting the cursor in JS on this line:
cursor
const screenStyle = cursorGrabbed ? { cursor: "none" } : {};
and then the fake mouse pointer is part of the hand graphic. Brilliant!
Oh, so there is a cursor trick! I've seen it on my mobile, where you can obviously just tap on things, so I hadn't caught on this feature.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ha, I saw this other day - it's fantastic :)
For anyone looking in the code for the 'trick' (of hiding the mouse), it's done by setting the
cursor
in JS on this line:and then the fake mouse pointer is part of the hand graphic. Brilliant!
Oh, so there is a cursor trick! I've seen it on my mobile, where you can obviously just tap on things, so I hadn't caught on this feature.