zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.29k stars 233 forks source link

FR: Separate Zoom Setting for Trackpad #2072

Open svtkhn opened 1 month ago

svtkhn commented 1 month ago

Is your feature request related to a problem? Please describe.

I tend to use mouse and trackpad interchangeably, including when I work in Excalidraw.

The default trackpad behaviour makes perfect sense to me! The only issue I have is with the zoom on mouse. By default it's cmd+scroll. I would like it to be just scroll.

I found the Mouse wheel to zoom by default option, which I was hoping would solve the issue. And it did, for the mouse, but it also affected trackpad behaviour, making it practically unusable:

Screenshot 2024-10-20 at 15 59 08

Describe the solution you'd like

It would make more sense to have two separate settings, one for trackpad, one for mouse, as it would allow to achieve the following configuration:

Screenshot 2024-10-20 at 15 59 37

Describe alternatives you've considered

The only solution is to go to settings and toggle the option every time I switch between two devices, but considering that I use both trackpad and mouse simultaneously, this workaround is not viable. So, at the moment, I stick to using cmd+scroll for zooming.

It's not the end of the world, but whenever I tried Mouse wheel to zoom by default: ON, I always found mouse behaviour to be way more intuitive and pleasurable – pan with wheel hold, zoom with wheel scroll, no keyboard needed. I just wish the option didn't break trackpad behaviour.

Additional context

I found the same issue with Obsidian Canvas – there is only the "Default mouse wheel behavior" setting that also affects both trackpad and mouse in the same way. Not sure if this means the feature can't be implemented in Excalidraw until Obsidian provides support for it, so I'll be happy to hear others' thoughts.

zsviczian commented 1 month ago

This should be addressed in the excalidraw component not the plugin. Please raise the FR here: https://github.com/excalidraw/excalidraw/issues

svtkhn commented 1 month ago

@zsviczian thank you for your response!

I wasn't able to find the Mouse wheel to zoom by default option at all in the excalidraw app itself, which is what made me think this feature was introduced in the plugin specifically. Could you kindly point me to where this option is available in the web excalidraw version so I can refer to it when filing a FR?