AgregoreWeb / agregore-browser

A minimal browser for the distributed web (Desktop version)
https://www.youtube.com/watch?v=TnYKvOQB0ts&list=PL7sG5SCUNyeYx8wnfMOUpsh7rM_g0w_cu&index=14
GNU Affero General Public License v3.0
715 stars 66 forks source link

Add mouse side-buttons navigation #256 #257

Open Arskan17 opened 4 months ago

Arskan17 commented 4 months ago

So uhm... I tried working on this and reached a little bit of a pickle. I implemented a bunch of things just to find out a day later that my mouse's side-buttons aren't apparently registered. I also tried to implement track-pad swipe gestures, but that's still a working progress.

While rabbit holing all over the internet I found out that JavaScript usually registers the side buttons (mouse's 4th and 5th button) for forward and back with code 4 and 3 respectively. For context, I use a Logitech mx master 3 on linux mint, for which they don't have a native app support... I used Mouse Test to check if they were getting registered, but they aren't...

So TLDR I can't test what I did, at least not on my current OS. I might need to dual-boot windows and see. Originally thought of spinning up a vm real quick, but it came to mind that the vm might just get back the codes sent from my OS in the first place...

But in the mean time, could anyone test it and see? Would really appreciate some feedback :)

Arskan17 commented 4 months ago

Thanks for taking a look ^^ So my mouse is definitely the problem then... I'll try to get another one.

Yeh... I'll look some more into that.