-
-
Notifications
You must be signed in to change notification settings - Fork 829
Dynamic max and min zoom in the new ImageView #5916
Conversation
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
I was an idiot to use them in the first place Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Sometimes I do really weird things and don't know why :D Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Have you tested this with images smaller than the viewport? At the moment, this PR seems to still scale them, which I don't think we want. |
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
In the original issue, you wrote: For small images that fit in the viewport, display them at 100% by default, and clicking the image is disabled. I think I misunderstood. My current understanding is that if the image is smaller than the viewport it should have the original size, right? |
Ah sorry. If the image is smaller than the viewport, then it should appear as its original size, since there is no need to scale it at all. So to translate, "display them at 100%" means "show the image at 100% zoom" == "original size". |
Once the small image behaviour is fixed, I think this will be ready to review and merge. Thanks for working on this! 😄 |
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
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.
Overall this is looking great! 😄 Let's tune the cursor, and then I think it's ready to merge.
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
…trix-react-sdk into image-view-zoom
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
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.
Thanks, this looks great, let's merge it! 😄
@SimonBrandner Can you prepare a version that targets |
@jryans, sure! |
Fixes #17049 and does a bit of refactoring