zulip / zulip-desktop

Zulip Desktop client for Mac, Windows and Linux.
https://zulip.com/apps
Apache License 2.0
847 stars 429 forks source link

A mouse's back button should work as a Zulip back button #1270

Open klardotsh opened 1 year ago

klardotsh commented 1 year ago

This FR stems from a CZO discussion on this issue.


Problem Description

I tend to use Zulip in Firefox/qutebrowser instead of the Electron app, in large part because my trackball's back button (MOUSE4 I'm pretty sure) works as a back button to navigate history there. This does not work in the Electron app, breaking my muscle memory. We have "back" functionality in the form of the toolbar icon in the bottom left, but it's not bound to the mouse.

Proposed Solution

The simplest solution is likely to attach a button press handler for MOUSE4 to the back button functionality found in the toolbar.

I haven't entirely thought through what a good UX for trackpad users would be: typically on (particularly Apple) trackpads, swiping in from the left serves as a back button, which most browsers demonstrate in some animated form by either painting a visual snapshot of the prior page, or by drawing an arrow overlay, to avoid a sudden and "invisible" back-button behavior.

Describe alternatives you've considered

None yet.

Additional context

Tangentially related to #1269.

caraballofelix88 commented 8 months ago

@zulipbot claim

zulipbot commented 8 months ago

Hello @caraballofelix88!

Thanks for your interest in Zulip! You have attempted to claim an issue without the label "help wanted". You can only claim and submit pull requests for issues with the help wanted label.

If this is your first time here, we recommend reading our guide for new contributors before getting started.

schewara commented 8 months ago

also related to this CZO Topic