[英]Is there a way to track mouse events outside of a browser window?
I am wondering if there is a way to use things like mousemove, mouseup, mousedown, etc. outside of a window.我想知道是否有办法在窗口外使用 mousemove、mouseup、mousedown 等。 I am trying to make something that tracks your mouse position, and I need to have it track the position out of the window.
我正在尝试制作跟踪鼠标位置的东西,我需要让它跟踪窗口外的位置。 Any help is appreciated!
任何帮助表示赞赏!
There is no way to track it outside the browser window.无法在浏览器窗口之外跟踪它。 If only such a way would exist - it will be treated as a security breach and will be fixed immediately.
如果只有这种方式存在 - 它将被视为安全漏洞并立即修复。
So you probably need to use some other way, eg make a separate fullscreen application or use fullscreen in the browser: https://www.w3schools.com/howto/howto_js_fullscreen.asp所以你可能需要使用其他方式,例如制作一个单独的全屏应用程序或在浏览器中使用全屏: https : //www.w3schools.com/howto/howto_js_fullscreen.asp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.