Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mouse side-buttons navigation #256 #257

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Arskan17
Copy link
Contributor

@Arskan17 Arskan17 commented Feb 7, 2024

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 :)

- Added the listeners that check for button codes, but I can't check with my mouse yet since it doesn't emit the usual supported codes.
- Also added listeners for trackpad swipes left&right.
added some gestures navigation logic
@Arskan17 Arskan17 changed the title Add mouse side buttons navigation #256 Add mouse side-buttons navigation #256 Feb 7, 2024
Copy link
Member

@RangerMauve RangerMauve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly I don't have a windows machine to test the mouse thing. I have managed to get my mouse 4&mouse 5 stuff working in Agregore on Linux however.

The right click drag thing is really neat. It'd be nice if there was a way to cancel the pop up menu when you drag and avoid accidentally "dragging" the text in the url bar.

@Arskan17
Copy link
Contributor Author

Arskan17 commented Feb 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants