-
Notifications
You must be signed in to change notification settings - Fork 159
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
enhancement: preview image presentation #9806
Conversation
8d42040
to
62b9985
Compare
let h: number | ||
let v: number | ||
|
||
switch (props.currentImageRotation) { |
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.
only 4 steps supported currently, needs matrix multiplication if more granular steps needed....
Could you please shortly elaborate, what
exactly means, so I can review the PR according to the expected behavior. IHMO includes, moving the image in the zone via drag and drop + animation while zooming/rotating, correct ? |
it means, it uses css3 (the lib) for those operations which is gpu accelerated, not sure if it makes a huge difference, it felt pretty smooth here. the main reason was to not have images cropped (ocis), but in some cases it still happened even if the source is un-cropped (css op origin was off). yup, drag and drop is possible, zooming via mouse wheel should be possible too easily but not part of this pr. |
use a more user friendly image preview and take care that images are no longer cropped
8fe46ae
to
dfbcc28
Compare
SonarCloud Quality Gate failed. 0 Bugs 27.5% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
* enhancement: preview image presentation use a more user friendly image preview and take care that images are no longer cropped * fix> e2e test preview image xpath
Description
the preview app now has a more user friendly image browsing experience,
image zooming, rotation and movement is smoother, images are no longer cropped.
basic mouse control (axis) is part of it which makes navigation in large files (e.g. maps) more easz.
Related Issue
Motivation and Context
web preview app is not just in use to preview images, but also to actually consume the content, therefor it is needed that images are un-cropped for that, in the file-list for example it is fine to have cropping in place.
How Has This Been Tested?
Screenshots (if appropriate):
BEFORE:
https://github.com/owncloud/web/assets/49308105/d9b4b4d7-7e55-4c5a-993c-0c0c77912717
AFTER:
https://github.com/owncloud/web/assets/49308105/c27e38e8-f053-412f-ada8-f95f54fab4e1
Types of changes
Checklist:
Open tasks: