简体   繁体   English

有没有办法在浏览器窗口之外跟踪鼠标事件?

[英]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.

相关问题 Three.js - 如何在浏览器窗口外和/或页面上的其他内容上继续跟踪鼠标 - Three.js - How to continue to track mouse outside browser window and/or over other content on the page 是否在浏览器窗口之外捕获鼠标位置? - Capturing mouse position outside of browser window? 最好的检查方法是将鼠标移到窗口外? - The best way to check is mouse move outside window? 有没有办法从浏览器外运行的程​​序触发 DOM 事件? - Is there a way to trigger DOM events from a program running outside the browser? javascript:窗外事件 - javascript: events outside of a window 有没有办法查看主浏览器窗口之外的内容? - Is there a way to see what's outside main browser window? Konva 继续在舞台外跟踪鼠标 - Konva continue to track mouse outside stage 当用户将鼠标拖到浏览器窗口外并释放在那里时,如何获得通知? - How to get notified when user drags the mouse outside the browser window and releases it there? 这部分代码如何能够在浏览器窗口之外修改鼠标指针? - How is this portion of code able to modify the mouse pointer seemingly outside of the browser window? 是否可以通过浏览器JavaScript检测Mac上触控板,魔术鼠标或魔术触控板的多点触摸事件? - Is there a way to detect, through browser javascript, multi-touch events of a trackpad, magic mouse or magic trackpad on a mac?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM