spot icon indicating copy to clipboard operation
spot copied to clipboard

[Feature Request] Use extra mouse buttons for back and forward navigation.

Open tur1ngb0x opened this issue 4 years ago • 7 comments

Description It would be nice to have a feature which detects "mouse4" and "mouse5" button events for "back" and "forward" navigation inside the app. This would result in faster navigation and less mouse movement.

General information:

  • Distribution: Ubuntu 20.04.3 LTS
  • Installation method: Flathub (User)
  • Version : 0.2.0
  • Device used: Laptop + External Mouse

App Information

$ flatpak info dev.alextren.Spot
Spot - Spotify Client for the GNOME desktop

         ID: dev.alextren.Spot
        Ref: app/dev.alextren.Spot/x86_64/stable
       Arch: x86_64
     Branch: stable
    Version: 0.2.0
    License: MIT
     Origin: flathub
 Collection: org.flathub.Stable
Installation: user
  Installed: 19.4 MB
    Runtime: org.gnome.Platform/x86_64/40
        Sdk: org.gnome.Sdk/x86_64/40

     Commit: 92d23006e4589bb5edf8d72a473a72dc4807a0c3b77802de098a8a22f9d1580a
     Parent: 618ab1618c617cfd3ccf6edd4c8514492a4bcce1003b614be431b52824b917b9
    Subject: Add --device=dri so GTK4 can use the GPU (eb40e907)
       Date: 2021-08-27 12:50:46 +0000

tur1ngb0x avatar Sep 01 '21 09:09 tur1ngb0x

This got merged upstream: leaflet: Support back/forward mouse buttons, so we can have mouse button navigation for free now.

jannuary avatar Nov 15 '21 04:11 jannuary

Or at least it would be, but leaflet swiping seems broken currently: Kooha-11-15-2021-11-27-45

jannuary avatar Nov 15 '21 04:11 jannuary

Something wrong with https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/property.Leaflet.can-navigate-back.html maybe, not sure we've enabled it

xou816 avatar Nov 16 '21 12:11 xou816

Or at least it would be, but leaflet swiping seems broken currently: Kooha-11-15-2021-11-27-45

This is with can-navigate-back:true.

jannuary avatar Nov 16 '21 13:11 jannuary

Oh of course nevermind, we can't do that! going back has to operate on the stack switcher not the leaflet

xou816 avatar Nov 16 '21 13:11 xou816

I was pondering how to make swipes work, and was instructed that we'd need two nested leaflets - one with sidebar and "library" as children, and the other with the details screen as a child and can-unfold=false.

jannuary avatar Dec 08 '21 02:12 jannuary

Trying to make the swipes work, but it would seem it would seem that would require to rework quite a bit of navigation routine, which goes a bit over my head Kooha-01-06-2022-12-30-59

jannuary avatar Jan 06 '22 05:01 jannuary