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: re-draw already loaded center images on change #71

Merged
merged 2 commits into from
Dec 3, 2022

Conversation

mnahkies
Copy link
Owner

@mnahkies mnahkies commented Dec 3, 2022

previously if the image was already loaded, changing the value of the QR code would make it disappear.

this change fixes that by immediately drawing the image if the complete property is true

may help with #64 - although as reported that was essentially the reverse of this situation :/

ref:

previously if the image was already loaded, changing the value of the QR
code would make it disappear.

this change fixes that by immediately drawing the image if the complete
property is true

may help with #64 - although as reported that was essentially the
reverse of this situation :/

ref:
- https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete
@mnahkies mnahkies marked this pull request as ready for review December 3, 2022 15:30
@mnahkies mnahkies enabled auto-merge (squash) December 3, 2022 15:30
@mnahkies mnahkies merged commit b578d5c into master Dec 3, 2022
@mnahkies mnahkies deleted the mn/fix/redraw-center-image branch December 3, 2022 15:32
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.

1 participant