javascript - 使用更改的 CSS 光标属性在不移动鼠标的情况下更新鼠标光标

标签 javascript c# jquery html css

我目前有一个 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/

相关文章:

C# 将 System.Data.Entity.DynamicProxies 克隆到实际(非代理)类?

javascript - 根据总成本的百分比计算成本

javascript - 将表单操作作为整个 url 发送而不破坏

c# - 我可以在 get 访问器中锁定集合吗?

javascript - 帮助理解 jQuery

javascript - 需要使用javascript在文本框中显示加法结果

javascript - focusin 和 focusout 无法正常工作

php - 使用ajax将数组发布到cakePHP中的 Controller

javascript - 如何通过单击按钮来暂停 svg 上的 css 动画?

c# - 当我运行覆盖率测试时,我得到了测试方法代码的覆盖率,而不是我想要测试的方法的覆盖率