You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing the responsiveness of this plug-in with gatsby, I noticed the zoom capability will disappear after the browser viewport resolution is changed, e.g. portrait to landscape or vice versa. A common use case when viewing with mobile device.
By examine the DOM, before the viewport size change:
after the browser viewport resolution is changed, the class medium-zoom-image that use to be applied against <img> tag will disappear and hence the loss of the zoom functionality:
After some more troubleshooting, I later found the issue above can be reproduced if the component is re-mounted. Looks like when the component mounts again, the class medium-zoom-image does not get apply.
While testing the responsiveness of this plug-in with gatsby, I noticed the zoom capability will disappear after the browser viewport resolution is changed, e.g. portrait to landscape or vice versa. A common use case when viewing with mobile device.
By examine the DOM, before the viewport size change:
after the browser viewport resolution is changed, the class
medium-zoom-image
that use to be applied against<img>
tag will disappear and hence the loss of the zoom functionality:Current Workaround
While not ideal, the zoom functionality can be restored with another manual refresh after the viewport resolution change.
The text was updated successfully, but these errors were encountered: