I would like to suggest that when you double tab on an image which is not in the center of the screen (because its not in a modal for example) then you zoom with the zoom center of the image center.
Now, when you double tab an image which is embedded without a modal it moves out of the image frame.
state is:
image getting zoomed with the zoom center = center of the screen
state should be:
image getting zoomed with the zoom center = center of the image
I would like to suggest that when you double tab on an image which is not in the center of the screen (because its not in a modal for example) then you zoom with the zoom center of the image center.
Now, when you double tab an image which is embedded without a modal it moves out of the image frame.
state is:
state should be: