Hacker News new | ask | show | jobs
by tylergetsay 1461 days ago
you could draw a fake one
1 comments

Exactly. You hide the native cursor with css and show an image on top of the page whose position you move around.
This would work visually but I think you'd run into a lot of edge cases where JS/CSS/the browser itself is expecting to hook into or access mouse APIs
Yeah, imagine fake mouse is clicking a Save-button, but real mouse is up in the corner clicking the browsers Close-button.
I agree, these questions are part of the work that would be required to take it from a prototype to something useable.

You could maybe add one big transparent layer on top of the page which would catch all "real" clicks and generate synthetic mouse events under the layer at the stabilized position.

Browsers aren't an "ideal" environment (versus an OS where you might be able to hook into the mouse position/display at a lower level), but at the same time, they are ubiquitious, cross-platform, etc.

Might be worth a shot to expand this more. It's on my long list of side projects -- I'd love to collab with someone on it!