My Mouse Gestures

A simple mouse gesture script

< Feedback op My Mouse Gestures

Vraag/Reactie

§
Geplaatst: 23-07-2024
Bijgewerkt: 23-07-2024

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

§
Geplaatst: 24-07-2024
Bijgewerkt: 24-07-2024

我的系统是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)

Reactie plaatsen

Log in om antwoord te geven.