Canvas zoom ignores the mouse cursor position

Zooming into the canvas should always focus on the exact mouse position for optimal experiance. This kind of works and it looks like the feature is implemented somehow. However, Obsidian ignores the mouse cursor’s position from time to time.

Obsidian canvas zoom:

Obsidian (2)

Miro zoom, for comparison:

Miro (3)

As you can see, Miro preserves the location where the cursor is pointing to, but Obsidian does not.

Steps to reproduce

It’s simple. Just create a canvas, add some items, and zoom in and out.

Expected result

The location that the mouse cursor is pointing to should be preserved when zooming in and out inside the canvas.

Actual result

The zoom focus goes here and there, and we’re unable to zoom in and out of the canvas reliably.

Environment

SYSTEM INFO:
	Obsidian version: v1.4.16
	Installer version: v1.4.16
	Operating system: Windows 10 Home 10.0.22621
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: on

RECOMMENDATIONS:
	none

Additional information

Videos are included above.