Developer forum

Forum » Swift » Pinch zoom on modal image

Pinch zoom on modal image

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi All,

The Media Gallery works pretty well on all devices, but I have a customer that would like to enable the user to pinch zoom in further to an image that was opened in the modal dialog on a mobile device.

I'm wondering if anyone has seen that request before, and if it is trivial or has a lot of caveats, I guess there is probably a good reason it is not possible now?

Thanks,

Justin

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Justin

Having modals on mobile devices is kind of weird - so I would rather go in another direction and remove the modal. If you do not have the image in a modal, regular browser zoom on mobile would work just perfect.

Do you have examples of well known ecommerce solutions that uses a well functioning pinch zoom in a modal?

BR Nicolai

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hey Nicolai, 

Ok, I might agree but think I was thinking in this direction because all the standard Swift components are using the modal approach it seems (MediaGallery and Media with Thumbnails), also on mobile, an I couldn't really see a way around that in the standard. In these components the regular zoom does not work, and I think I cannot " turn off" the modal behaviour?

On this site it works pretty decent with a fancybox I think https://www.internet-bikes.com/1013490-amigo-e-vibe-d1-28-inch-dames-7v-v-brakes-matgrijs/ 

Although it is a bit sensitive to scrolling to the next image instead of zooming...

Thanks,

Justin

 

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

I think we should get rid of the modal on mobile in Swift.

Popping an already full size image in a mobile browser makes no sense.... Just adds complexity and as you notice, ux issues.

Votes for this answer: 1

 

You must be logged in to post in the forum