richrobber2 / canvas-zoom

zoom and pan functionality
350 stars 23 forks source link

Changing brush size with ctrl+scroll wheel is twice as fast as changing with [ & ] #98

Closed fireattack closed 7 months ago

fireattack commented 8 months ago

Currently if you use [ & ] to change brush size level, it changes from level 1 to 2, 2 to 3 etc.

However if you use ctrl+wheel to change, every scroll changes it from level 1 to 3, 3 to 5 etc.

I'm not sure if it's caused by conflict with WebUI's built-in ctrl+wheel shortcut or not, but it's quite annoying.

Is there a way to make the two have the matching behavior (i.e. change brush level at the same speed)?

Thanks!

daswer123 commented 8 months ago

Hi, thanks for letting me know, I'll check that out

daswer123 commented 7 months ago

Hi, found the bug and fixed it, you can check it, now the change should be the same on the wheel and on the button

richrobber2 commented 7 months ago

Fixed an bug when changing brush size via buttons