我的滑鼠手勢

一個簡單的滑鼠手勢腳本

< 腳本我的滑鼠手勢的回應

提問/評論

§
發表於:2024-07-23
編輯:2024-07-23

最新版本的Chrome中无效, 版本 126.0.6478.182(正式版本) (64 位) , 所有网站均不生效,是不是contextmenu事件的周期发生变化了?

§
發表於:2024-07-24
編輯:2024-07-24

我的系统是Linux查了一下资料发现,chrome在windows和Linux下的mouseup 和 contextmenu的触发周期不一样。

详见:https://issues.chromium.org/issues/40935507

On Windows contextmenu pops up after mouseup. Here is the behavior on different browsers:

Chrome: mousedown, mouseup, auxclick, contextmenu

On Linux contextmenu pops up after mousedown. Here is the behavior on different browsers:

Chrome: mousedown, contextmenu Chrome with a very quick right click: mousedown, contextmenu, mouseup, auxclick (reason being that the event is already queued for the renderer and contextmenu window doesn't get a chance to consume that)

發表回覆

登入以回復