-
Notifications
You must be signed in to change notification settings - Fork 158
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
If the image uses the srcset attribute, the pop-up layer will be displayed misaligned. #208
Comments
During the troubleshooting process, I found that when initializing the import mediumZoom from 'medium-zoom';
// Medium Zoom.u-rich-text img,figure img
export default function initMediumZoom() {
const images = document.querySelectorAll('.u-rich-text img');
mediumZoom(images, {
background: 'rgba(0,0,0,0.75)',
container: '.medium-zoom-overlay'
});
} I also noticed that when using the |
Bug description
How to reproduce
use code
Expected behavior
Reproducible example
please see my blog
https://1900.live/top-5-personal-movies-of-the-year-2023/
Environment
medium-zoom
version:The text was updated successfully, but these errors were encountered: