Skip to content

Conversation

@juliusl
Copy link

@juliusl juliusl commented Aug 29, 2025

This enables holding down the middle mouse button to drag the canvas in order to move the scroll wheels.

Also, adds additional space to min-size so that the edges of the image can be more centered. (Not a Qt expert, but setting a layout didn't seem to fix the issue and this was the least intrusive option)

@wkentaro
Copy link
Owner

hmm, but the offset makes any newly open image offset by default:

image

even if we decide to run "Fit Window" after the offset in the beginning, just 500 offset means we can't move the image that freely.

image

@juliusl
Copy link
Author

juliusl commented Sep 2, 2025

@wkentaro - I was wondering if you had any ideas on how to better implement that? I noticed if there isn't some extra space around the edges, it's not possible to center a portion of the image on the edges to the center of the canvas.

@spoonytripod
Copy link

spoonytripod commented Oct 20, 2025

The dragging feature is what I really wanted. Thanks! It works greatly. I hope this feature will be merged into the original branch.

I have one question. Would it be possible to change the image zoom in/out default setting from the current Ctrl + Wheel Scroll Up/Down to just Wheel Scroll Up/Down? This change would allow me to almost completely eliminate keyboard usage in my current workflow, which would be great!

@juliusl
Copy link
Author

juliusl commented Oct 21, 2025

@wkentaro so I think I fixed the issue, could you give it a try and let me know what you think?

@juliusl
Copy link
Author

juliusl commented Oct 21, 2025

I have one question. Would it be possible to change the image zoom in/out default setting from the current Ctrl + Wheel Scroll Up/Down to just Wheel Scroll Up/Down? This change would allow me to almost completely eliminate keyboard usage in my current workflow, which would be great!

@spoonytripod Hmm, that would probably need to be in a different PR, I suggest opening an issue/feature request. Since that isn't bound to a shortcut it's not something you can change from .labelmerc, which would mean it requires some code change around the wheelEvent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants