obsidian-image-converter icon indicating copy to clipboard operation
obsidian-image-converter copied to clipboard

Resize image in reading mode with mouse wheel only shrinks image, no matter the direction of the wheel

Open luckman212 opened this issue 1 year ago • 4 comments

Plugin ver v1.2.22

When I hold "shift" and zoom my mousewheel to resize an image in reading mode, it only shrinks.

If I roll the wheel down, it shrinks.

If I roll the wheel up, it also shrinks. There's no way to zoom it the other direction. I think it's a bug... :)

luckman212 avatar Dec 26 '24 13:12 luckman212

By any chance do you have any other plugins/themes/snippets installed? I am unable to reproduce Obsidian_chYZroTMNM

xRyul avatar Dec 28 '24 21:12 xRyul

I don't use a custom theme (just standard Dark theme) but I do use some other plugins. I will re-test with all other plugins disabled. The only other thing I could think of is maybe because I use a wheel mouse with the scroll direction reversed using github.com/linearmouse.

luckman212 avatar Dec 30 '24 14:12 luckman212

It happens to me aswell on mac, it even happens on a new vault and when i quit macmousefix

Esyriz avatar Feb 09 '25 17:02 Esyriz

All code for scroll/ drag-resizing is in ImageResizer.ts feel free to play around and see what causes it. I am unable to reproduce neither on mac or windows, sorry guys 🥲

xRyul avatar Feb 10 '25 00:02 xRyul