wavebox / waveboxapp

Wavebox, the revolutionary and feature-rich Chromium browser that's built for productive working across Google Workspaces, Microsoft Teams, ClickUp, Monday, Atlassian, Asana, AirTable, Slack, and every other web app you use to get work done.
https://wavebox.io
1.3k stars 135 forks source link

Allow navigation using mouse forward/back buttons #33

Open code-decipher opened 7 years ago

code-decipher commented 7 years ago

Allow navigation using mouse forward/back buttons

jacksarick commented 7 years ago

Navigation between what and what?

code-decipher commented 7 years ago

Modern browsers implement forward and back buttons for navigation which is the default behavior with mouse forward and back buttons. The requested functionality simply mirrors the behavior experienced when using these applications from a browser.

Using gmail in the browser as an example:

  1. Start at list view
  2. Click an email
  3. Press back button on mouse (triggers back button in browser)
  4. List view is again displayed
  5. Press forward button on mouse (triggers forward button in browser)
  6. Email from step 2 is again displayed
Thomas101 commented 7 years ago

mouse-forward-back might be a good place to add support for this. I'll take a look

ToxMox commented 7 years ago

I would like to see this as well. I often navigate back and forward while in something like Google Inbox using my mouse buttons.

Thomas101 commented 7 years ago

Hi, this has just been released in the latest version of Wavebox. You can get the update by using the Application/File menu and clicking Check for Update or by downloading the latest version from our download page. Thanks!

Thomas101 commented 7 years ago

Disabled in version 3.1.3 on linux as it causes file descriptor leak when re-focusing window https://github.com/wavebox/waveboxapp/issues/302

jimmystuart commented 7 years ago

Using 3.1.12 on a Mac (10.12) and the back button/swipe isn't working. Should it be?

Thomas101 commented 7 years ago

Support was added for side-buttons on mice in Windows and Linux. We don't have support for swipe on mac mice at the moment

madorb commented 7 years ago

Using 3.2.0 on MacOS El Capitan it looks like swipe now works on my laptop's built in trackpad, but my external mouse back/forward do not, is this expected? Can't quite tell what the expected current state is

Thomas101 commented 7 years ago

We've only added support for touchpad swiping on mac at the moment. As far as I can tell there's no standard way to communicate back and forwards from the mouse on mac, it normally requires a 3rd party tool which bridges the two. What type of mouse do you have?

jimmystuart commented 7 years ago

If you could support the Safari keyboard shortcuts for forward and back then we can map mouse buttons to them and that works universally across every mac program that I use personally (I use SteerMouse to do the mapping). Forward is Cmd+] and Back is Cmd+[

Thomas101 commented 7 years ago

Cmd+Left and Cmd+Right are the default shortcuts, but if you want to change them to Cmd+] and Cmd+[ you can remap them under settings.

There's a blog on how to do so here. You'll be looking for the Navigate Back and Navigate Forward shortcuts and then CmdOrCtrl+[ and CmdOrCtrl+] should be what you need to enter

dizzzan commented 7 years ago

For anyone that may be having trouble with this, I use BetterTouchTool (https://www.boastr.net/) to map mouse buttons on MacOS and have a global setting to remap my Logitech mouse's fwd/back buttons to the 3 finger swipe left/right actions for forward/back navigation. This works in most apps, especially browsers. However I had to add an action for Wavebox to map those buttons to cmd+left and cmd+right to get navigation working in Gmail. Hope this helps.

bkuri commented 6 years ago

@Thomas101 any hope for Linux support in the horizon? I love this app, but not having extended mouse support slows me down quite a bit. Many thanks!

Thomas101 commented 6 years ago

@bkuri we did have this in a while ago, but it ended up leaking memory on window switching. I'll try and take another look to see if we can get around that issue.

wishx commented 5 years ago

Can we re-revisit this now? We're up to version 4.5.3 on Linux and still no forward and back mouse buttons.

wishx commented 5 years ago

I think this is working now? I question because it works on my Linux Mint 19.1 build with the 5.0.1 kernel, but not sure if it works for anyone/everyone else.

bkuri commented 5 years ago

Looks like it's working under Arch on 5.0.2 as well (thanks devs!).

As an aside, I noticed that the ← and → toolbar buttons don't seem to be syncing correctly when I use the physical mouse buttons to navigate. For example, clicking on the "previous" mouse button doesn't activate the "next" toolbar button if it was previously disabled. Hope that made sense.

Thomas101 commented 5 years ago

I have to admit this isn't down to us. @bkuri are you using the 5.0.1 kernel too?

In the current version, Windows emits an app-command event with browser-back and browser-forward. Support for this has been extended to Linux in electron 5-beta so we have been planning on using that when electron 5 goes from beta to stable.

The other thing we've looked at a few times and tried is mouse-back-forward but we found it leaks memory like anything and couldn't get to the bottom of it in cross-distro way that had reasonable support

bkuri commented 5 years ago

I have to admit this isn't down to us. @bkuri are you using the 5.0.1 kernel too?

Tested on both 5.0.1 and 5.0.2 (updated post).

FWIW, I just noticed that support for mouse buttons isn't consistent across all sites. Some sites navigate perfectly fine while others seem to completely ignore the event.

I guess I'll go back to using toolbar buttons like a neanderthal for now (lol j/k).

Thomas101 commented 5 years ago

I guess I'll go back to using toolbar buttons like a neanderthal for now (lol j/k).

Ha! 🤣

Any particular sites it does work on? I can test and reproduce here.

As I mentioned above electron 5 is promising support for this, they're scheduling mid-April for this to go stable. Depending how buggy the initial version is, we'll be bringing this into our beta channel soon after - so you can move onto the stone age soon :)

bkuri commented 5 years ago

Any particular sites it does work on? I can test and reproduce here.

Here's a very small list of sites that work:

So far it seems that all sites I tested actually work OK as of v4.8.5beta (even sites that didn't work before). Maybe something changed in the last version or two?

Looks like I may be able to ditch the toolbar after all!