Canvas mouse wheel default behavior set to "zoom" disables trackpad pinch-to-zoom functionality


Setting the “Default mouse wheel behavior” option in the Canvas plugin’s settings to “Zoom” disables the ability to use a trackpad pinch gesture to zoom in/out, instead causing the canvas view to pan vertically.

Steps to reproduce

  1. Set the “Default mouse wheel behavior” setting in the Canvas settings panel to “Zoom”
  2. Open a canvas
  3. Attempt to pinch to zoom in/out using the computer’s trackpad

Expected result

The canvas zooms in accordance with the input gesture.

Actual result

The canvas pans vertically.


Tested and confirmed in Sandbox vault.

Obsidian version: v1.2.5
Installer version: v1.1.15
Operating system: Darwin Kernel Version 21.6.0: Mon Aug 22 20:17:10 PDT 2022; root:xnu-8020.140.49~2/RELEASE_X86_64 21.6.0
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on


Actually, after playing with it further, it appears the bug is more general than that. It appears that the setting swaps the trackpad/multitouch pan and scroll behavior instead of just applying to mouse wheel input. In other words, the behavior is as follows:

Mouse wheel set to Pan:

  • Two fingers dragged around the trackpad together pans the canvas
  • Two fingers pinched together or apart zooms the canvas

Mouse wheel set to Zoom:

  • Two fingers dragged around the trackpad together zooms the canvas, but only for finger input along the vertical axis
  • Two fingers pinched together or apart pans the canvas vertically. Spreading the fingers apart pushes the canvas downward (or the view upward), while pinching them together pushes the canvas upward (or the view downward).