Skip to content
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

fix: remove loading attribute on HD target #186

Merged
merged 1 commit into from
Mar 15, 2022
Merged

fix: remove loading attribute on HD target #186

merged 1 commit into from
Mar 15, 2022

Conversation

NYPD
Copy link
Contributor

@NYPD NYPD commented Mar 15, 2022

Summary

Fixes #185

Remove any loading attribute the zoomedHd cloned node might have to allow the browser to load it normally

Result

Same zoom behavior as expected. Before it used to glitch half the time and get stuck on a zoomed image and making the webpage unresponsive. The #185 ticket explains it.

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 84e6f54:

Sandbox Source
@medium-zoom/vanilla-example Configuration
@medium-zoom/vanilla-example Issue #185
cool-forest-yvlu0h Issue #185

Copy link
Owner

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@francoischalifour francoischalifour changed the title remove loading attribute, if any, when using a hdZoom fix: remove loading attribute on HD target Mar 15, 2022
@francoischalifour francoischalifour merged commit dd01423 into francoischalifour:master Mar 15, 2022
@crutchcorn
Copy link

@francoischalifour any chance for an NPM release? This is a blocker on adding in medium-zoom back to my site

@francoischalifour
Copy link
Owner

🎉 I just released v1.0.7 which includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

data-zoom-src not working with loading attribute
3 participants