nicojeske / mousewheel-image-zoom

An Obsidian plugin that enables you to increase/decrease the size of an image by holding down a configurable key (defaults to left alt), hovering over an image in preview mode and scrolling.
MIT License
90 stars 5 forks source link

Obsidian Canvas conflict. When Ctril it's chosen as default obsidian Canvas doesn't Zoom #49

Open alvaro347 opened 7 months ago

alvaro347 commented 7 months ago

Thanks for this very useful plugin! I encountered this conflict while using Obsidian Canvas

When the mousewheel-image-zoom plugin is assigned to Ctrl the plugin has a conflict in Obsidian Canvas. Notes get resized when using Ctrl + Mouse Wheel instead of zooming in or out on the canvas

  1. Expected result:

Untitled

  1. When Ctrl is assigned:

Untitled3

Is there a way to avoid the resizing of the notes?

Mideks commented 7 months ago

Hi there! This is not a bug, it is expected behaviour. I coded this feature in #48 and it was released in the latest update. I think we can make a setting to toggle this behaviour. Do you have any ideas on how to do this?

nicojeske commented 7 months ago

@Mideks

I think the easiest solution would be to add a toggle in the settings, for enabling/disabling zooming in canvas with Ctrl. With the default being to disable zooming with Ctrl in Canvas.