7 ms·
This should be fixed by the browser. If mouse is hold-clicked on scrollbar and the height of the document changes. the position of the mouse should change as we
by PeterUstinox 13y ago
This should be fixed by the browser. If mouse is hold-clicked on scrollbar and the height of the document changes. the position of the mouse should change as well.
What's the problem with that?
- dandelany 13y agoI don't think the browser is technically able to move the mouse cursor, I imagine that happens at the OS level. Anyone have a counterexample?
- icebraining 13y agoThe OS has APIs that applications like the browser can use for that, e.g.: Win32: http://msdn.microsoft.com/en-us/library/windows/desktop/ms648394(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/windows/desktop/ms64... X11: http://tronche.com/gui/x/xlib/input/XWarpPointer.html http://tronche.com/gui/x/xlib/input/XWarpPointer.html
- repsilat 13y agoApplications in most operating systems can set the cursor position. Full-screen games often reset it to the middle of the screen every frame. IIRC it isn't exposed to JS except maybe for some new fullscreen API (not my area, sorry.)