我目前有一个 C# 主机,可以在网站上镜像屏幕和鼠标,连接完全正常,当主机上的鼠标发生变化时,它几乎会立即更改 CSS。这样我也可以镜像鼠标。
问题来了:
仅当我在客户端网站上移动鼠标时,鼠标才会更新。
速度和性能在这里非常重要,快速解决方法是刷新 Canvas ,或稍微移动页面/鼠标,但我宁愿采用更复杂的方法。
最佳答案
您应该检查@rjmunro 链接的链接中给出的答案之一,它说:
I believe this issue (including the mousedown problem) is now fixed in Chrome 50.
But only if you are not using the developer tools!!
Close the tools and the cursor should immediately respond better.
Getting the browser cursor from "wait" to "auto" without the user moving the mouse
关于javascript - 使用更改的 CSS 光标属性在不移动鼠标的情况下更新鼠标光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37462132/