Panning/zooming improvements and fixes, round 2#554
Open
filip-hejsek wants to merge 4 commits intoTypesettingTools:masterfrom
Open
Panning/zooming improvements and fixes, round 2#554filip-hejsek wants to merge 4 commits intoTypesettingTools:masterfrom
filip-hejsek wants to merge 4 commits intoTypesettingTools:masterfrom
Conversation
- Never modify viewportSize outside of the added UpdateViewportSize() - Set a sane initial size in the construtor instead of haphazardly doing it in Render() - Ensure that the viewport and client sizes do not get out of sync in free size mode - Also update the size before positioning video when the tool changes (but see the added TODO)
The window zoom value was calculated incorrectly in free size mode when content zoom was active.
filip-hejsek
commented
Feb 20, 2026
Comment on lines
617
to
621
| // FitClientSizeToVideo fits the window to the video, which we don't want to do | ||
| GetGrandParent()->Layout(); | ||
| // TODO Is the following really necessary? Wouldn't it be taken care of by OnSizeEvent? | ||
| UpdateViewportSize(true); | ||
| PositionVideo(); |
Contributor
Author
There was a problem hiding this comment.
There is one remaining TODO: previously, this code called PositionVideo() without first updating the viewport size. This is either:
- broken, because the video will be positioned with the wrong
viewportSize, - or unnecessary, because the positioning has already been done or will later be redone by
OnSizeEvent().
I'm not sure which.
Contributor
Author
There was a problem hiding this comment.
And I don't know how to test this because for me, changing the tool never resizes the video.
This comment was marked as outdated.
This comment was marked as outdated.
Contributor
Author
|
Actually, it was because I overwrote my video scroll action settings by running an old version of Aegisub, sorry for the noise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A few additional fixes that didn't make it into the first round:
Video comparison
before.webm
after.webm