Right click + Drag to pan canvas works on Windows but doesn't work for Mac

Everything is in the title

2 Likes

not everything is in the title, you should really follow the bug report template. you make out life harder.

Everything is in the title

2 Likes

Yep this is a much needed feature, there is no way to move the canvas currently.
Miro.com does it that way (right click and hold to move the canvas)
This can be an option in the settings if the devs don’t want to make it the default behavior !

1 Like

If by “move the canvas” you’re looking to pan, this is done by holding <space> and dragging with the mouse (which, for the follow-up, is the same control as right-click dragging in Miro).

1 Like

I would like to do that with the mouse only. I know you can hit space to do it. But why move both my hands when I can move only one ?

3 Likes

+1. All the folks coming from Miro (incl. me) will appreciate it.

Also noteworthy that graph view can currently be panned like this.

1 Like

If your mouse has a middle button, then you can also drag a Canvas with middle-click+drag.

you need to be a body builder in order to push the middle button, it works when you do it once, but it’s really a pain for people who use this all the time.
plus, not all mice support middle button. it’s the case for apple magic mouse.

Right button is just so much easier.

The middle button is also not the natural resting position of your fingers. you need to move one of your finger on left or right button in order to click it

We looked in this and unfortunately implementing right-click + drag is going to be very hard/impossible (due to API limitations and differences among OSes).

It also does not work on Linux.

OS: Ubuntu
Ubuntu Version: 23.10
Mouse: wireless logitech mouse
Expected behaviour: Right click dragging pans the canvas
Actual behaviour: Right click context menu appears

Will it be possible to fix this issue on Linux?

1 Like

this is the only thing i miss from windows…

Is it still impossible to fix? Would really appreciate right click = drag canvas (pan). Miro is a champ with this. 3D design is similar, the most used functions applied to the main mouse buttons first. Then all the less useful features jumbled into key combos.

This could be achieved by using keyboard mapping software under MacOS.

I used Karabiner Element and make “holding on Right-Click” ==> Middle-Click, and if you Right-Click and quickly release it, the context menu will show up as normal.

To avoid this mouse key mapping cause trouble for other softwares, I set special conditions for this mapping to work only for Obsidian.md. :smile:

@pimgeek I am actually trying to get that exact setup to work. Would you please share your Complex Modifications rule you are using to achieve this? Would really appreciate it.

1 Like

Just set & enable the following Complex Rule in Karabiner Element.

It means: When holding right mouse button and drag, Karabiner will map it into “dragging with middle-button”; and if you right click and quickly release the right button (less than 200 milli-seconds, or other value defined by you), Karabiner will map it into a single “right-click” :smile:

{
  "description": "[Obsidian Only] RightDrag => MiddleDrag",
  "manipulators": [
    {
      "conditions": [
        {
          "bundle_identifiers": [
            "md.obsidian"
          ],
          "description": "Only effective if Obsidian is the Front-most Window",
          "type": "frontmost_application_if"
        }
      ],
      "from": { "pointing_button": "button2" },
      "parameters": { "basic.to_if_held_down_threshold_milliseconds": 200 },
      "to_after_key_up": [{ "pointing_button": "button2" }],
      "to_if_held_down": [
        {
          "halt": true,
          "pointing_button": "button3"
        }
      ],
      "type": "basic"
    }
  ]
},
1 Like

@pimgeek Works like a charm. Exactly what I needed :slight_smile:

1 Like