-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the image overlay behave better #1643
base: master
Are you sure you want to change the base?
Conversation
01fef9e
to
5908353
Compare
5bdd6d7
to
1948ef0
Compare
FWIW, I originally tried to clamp the image edges to the screen edge if the image was zoomed in to be larger than the screen in at least one dimension, but it kept acting buggy, so I gave up on that. |
1948ef0
to
879710b
Compare
xAxis.enabled: imgContainer.physicalWidth > Screen.width | ||
yAxis.enabled: imgContainer.physicalHeight > Screen.height |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we be comparing against the window size here in case some compositor ignores our full screen request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Same in the places above)
Seems to work well with a mouse, still need to test it on my touchpad :D |
Previously, the image would not try to stay centered; furthermore, on mobile devices, it was impossible to zoom images without dropping them at a slightly off rotation. This bothered me enough that I've clamped images to the center of the screen (as long as they aren't zoomed larger than the screen) and snapped rotations to 45-degree increments (with a nice animation to boot).
879710b
to
52346d9
Compare
Hm, does anybody remember, why I hadn't merged that yet? Just because I didn't test it with my touchpad yet? Or because the rotation snapping didn't work? |
I think just the touchpad. |
Previously, the image would not try to stay centered; furthermore,
on mobile devices, it was impossible to zoom images without dropping
them at a slightly off rotation. This bothered me enough that I've
clamped images to the center of the screen (as long as they aren't
zoomed larger than the screen) and snapped rotations to 45-degree
increments (with a nice animation to boot).