waveboxapp icon indicating copy to clipboard operation
waveboxapp copied to clipboard

Allow navigation using mouse forward/back buttons

Open code-decipher opened this issue 9 years ago • 22 comments

  • Wavebox 3.1.2
  • OS: Windows 10

Allow navigation using mouse forward/back buttons

code-decipher avatar Apr 07 '17 16:04 code-decipher

Navigation between what and what?

jacks-old-git avatar Apr 07 '17 17:04 jacks-old-git

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

code-decipher avatar Apr 07 '17 17:04 code-decipher

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

Thomas101 avatar Apr 07 '17 17:04 Thomas101

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

ToxMox avatar May 04 '17 15:05 ToxMox

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 avatar Jun 22 '17 08:06 Thomas101

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

Thomas101 avatar Jul 07 '17 10:07 Thomas101

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

jimmystuart avatar Jul 07 '17 13:07 jimmystuart

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

Thomas101 avatar Jul 10 '17 10:07 Thomas101

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

madorb avatar Aug 03 '17 17:08 madorb

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?

Thomas101 avatar Aug 04 '17 07:08 Thomas101

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+[

jimmystuart avatar Aug 04 '17 10:08 jimmystuart

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

Thomas101 avatar Aug 04 '17 10:08 Thomas101

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.

dizzzan avatar Sep 18 '17 15:09 dizzzan

@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!

bkuri avatar Apr 16 '18 22:04 bkuri

@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.

Thomas101 avatar Apr 18 '18 10:04 Thomas101

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 avatar Dec 11 '18 16:12 wishx

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.

wishx avatar Mar 13 '19 18:03 wishx

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.

bkuri avatar Mar 13 '19 21:03 bkuri

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

Thomas101 avatar Mar 14 '19 09:03 Thomas101

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

bkuri avatar Mar 14 '19 18:03 bkuri