Conversation
The Inbox's file viewer now uses ui's ImageZoomStage: Ctrl/Cmd + wheel and trackpad pinch zoom about the pointer, drag or one finger pans, two fingers pinch, double click toggles Fit and 2x, Fit to 800%, the scale shown in the size bar. Arrow keys always step files. A comment's drawing is drawn over the image in its transform. ImageZoomStage gains optional fitAxis, padding, overlay, onImageLoad and onImageError seams; the lightbox is unchanged.
… after the annotator loads The stage padding is read again when the phone breakpoint is crossed, and ImageZoomStage refits when its padding or fit axis changes. The e2e waited only for the annotator canvas to be visible, so it drew on the 300x150 default canvas; it now waits for the loaded image, draws around the total, and checks the drawing's pixels land on that spot on screen at Fit and zoomed.
… against the stage Leaving full screen brings the list back with a spring; for about 300 ms the stage moves and resizes. The test read the stage box once and dragged while it was still moving, so on CI the drag read as -77 px instead of -120. It now waits until the stage holds still, measures the image relative to the stage, keeps the drag within the room the image has, and polls for the last move.
1 task
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.
The Inbox's image viewer (beside the thread, full screen, and on phones) now zooms and pans the same way the image lightbox does since #2074. It uses the lightbox's
ImageZoomStage.Gestures:
ImageZoomStagegets optional seams:fitAxis,padding,overlay,onImageLoadandonImageError. The lightbox passes none of them and is unchanged. The guides.show manifest did not change.Tests: