[Linux] Mouse button goes back twice

Steps to reproduce

Run 0.6.4 on Linux, navigate around, press and release mouse “back” or “forward” button.

Expected result

Go back or forward one page.

Actual result

It goes back or forward two pages, once on press and once on release. So if I hold the button down it goes back one page as desired; but releasing it goes back two pages.

Environment

  • Operating system: Linux
  • Obsidian version: 0.6.4
  • Using custom CSS: no

Additional information

This does not happen in Chromium or other Electron apps (I tested a todoist electron app).

1 Like

I have a hardware back key in linux and it goes back twice when I press it.

1 Like

I have the same issue, in 0.6.5.

Here’s the output from xev, for that particular button:

ButtonPress event, serial 31, synthetic NO, window 0x5200001,
    root 0x1ea, subw 0x5200002, time 76288037, (41,43), root:(4525,63),
    state 0x0, button 8, same_screen YES

EnterNotify event, serial 31, synthetic NO, window 0x5200001,
    root 0x1ea, subw 0x0, time 76288037, (41,43), root:(4525,63),
    mode NotifyGrab, detail NotifyInferior, same_screen YES,
    focus NO, state 0

KeymapNotify event, serial 31, synthetic NO, window 0x0,
    keys:  4294967274 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

ButtonRelease event, serial 31, synthetic NO, window 0x5200001,
    root 0x1ea, subw 0x5200002, time 76288293, (41,43), root:(4525,63),
    state 0x0, button 8, same_screen YES

LeaveNotify event, serial 31, synthetic NO, window 0x5200001,
    root 0x1ea, subw 0x0, time 76288293, (41,43), root:(4525,63),
    mode NotifyUngrab, detail NotifyInferior, same_screen YES,
    focus NO, state 0
1 Like

Still happening in 0.7.4

Also have this issue v0.8.1

Mine on macos 10.15.6 does not have this , with Obsidian v.0.8.1

I have the same problem in Ubuntu, with obsidian 0.8.1 and persist in 0.8.2

Can confirm this also happen in Kubuntu with 0.8.10.

Same on Ubuntu 20.04 with 0.8.10 (back button on mouse).

I’ve been looking into introducing Obsidian at our company as a documentation tool but this bug is a showstopper. Could you give us a rough estimate when this will be fixed?

This is still happening in 0.8.9. Output from xev:

ButtonPress event, serial 34, synthetic NO, window 0x2e00001,
    root 0x24a, subw 0x0, time 1368784200, (310,944), root:(1594,978),
    state 0x0, button 9, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x2e00001,
    root 0x24a, subw 0x0, time 1368784498, (310,944), root:(1594,978),
    state 0x0, button 9, same_screen YES

ButtonPress event, serial 34, synthetic NO, window 0x2e00001,
    root 0x24a, subw 0x0, time 1368785740, (310,943), root:(1594,977),
    state 0x0, button 8, same_screen YES

ButtonRelease event, serial 34, synthetic NO, window 0x2e00001,
    root 0x24a, subw 0x0, time 1368786114, (310,943), root:(1594,977),
    state 0x0, button 8, same_screen YES

It is double-firing the event handler for navigation somehow.

We can’t reproduce this on linux virtual machines. We will look into this at some point more closely. It is related to an upstream problem with Electron.

Weird…

According to Electron’s issue it’s not supported out-of-the-box, and it’s a won’t fix https://github.com/electron/electron/issues/6996#issuecomment-423873660

They suggest you need a 3rd party module which seems to implement this functionality using a native c++ module.

The weird thing is - If that’s not supported, why does it work for us, not only once but twice???

2 Likes

I have found the issue and it will be resolved in v0.8.12.

1 Like