ngdeleito / easyGestures

A WebExtension for Firefox providing easy to learn gestures through a highly customizable pie menu
https://addons.mozilla.org/en-US/firefox/addon/easygestures-n/
10 stars 1 forks source link

Middle click on macOS #16

Closed ris58h closed 9 months ago

ris58h commented 1 year ago

Hi. I've added the extension to Firefox on macOS Monterey and shift+left_click works but middle click doesn't. I use https://github.com/artginzburg/MiddleClick-BigSur to emulate middle click behavior on macOS. It works fine (at least it opens a link in a new tab in Firefox).

ngdeleito commented 1 year ago

Hi, thank you for your message. Do I understand correctly that (1) you use MiddleClick to emulate middle click on macOS, and (2) you cannot open the pie menu using the middle click button?

I'm afraid MiddleClick might be simply emulating the middle click behavior somehow, but not reporting to the OS a middle click event (or Firefox not reporting a middle click event to the extension)? I used to use MagicPrefs, but, even though it keeps working on the latest macOS, the OS no longer provides the APIs for it to fully work... Since then, I have moved to using classic mice with a physical middle click button.

ris58h commented 1 year ago

(1) Yes (2) Yes

As I can see, easyGestures listens to mousedown events. I've tried document.addEventListener('mousedown', e => console.log(e)) and it logs middle clicks just fine.

Screenshot 2022-10-04 at 00 01 33
ngdeleito commented 1 year ago

I'm clueless, it should work then. You are not on a privileged page or in a page with frame elements, where the pie menu for sure cannot be opened, right?

ngdeleito commented 9 months ago

I eventually started using the MiddleClick app and middle click works fine on my side. I'm closing this issue. Feel free to further comment if you are still experiencing this problem.