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: do not add drift-loading class after first hover #317

Merged
merged 7 commits into from
Sep 6, 2019

Conversation

sherwinski
Copy link
Contributor

@sherwinski sherwinski commented Aug 30, 2019

Fixes #236, addressing unexpected behavior caused by webkit not firing a load event when an img src is set without actually changing it. This causes a loading animation to appear even if the image has apparently loaded successfully, as this animation is only removed once the expected load event is triggered.
This PR prevents this scenario by avoiding these steps after the first image load.

loading animation in drift

@sherwinski sherwinski requested a review from jayeb August 30, 2019 05:16
@frederickfogerty
Copy link
Contributor

frederickfogerty commented Aug 30, 2019

Prettier is always trying to up its commit count 👏

Copy link
Contributor

@jayeb jayeb left a comment

Choose a reason for hiding this comment

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

Code looks good. Is this something we can add tests for without colossal effort? I don't remember what the testing story is for this library.

@sherwinski sherwinski merged commit 750c4cf into master Sep 6, 2019
@sherwinski sherwinski deleted the properly-remove-loading-safari branch September 6, 2019 21:44
@sherwinski sherwinski changed the title fix: do not add loading class after first hover fix: do not add drift-loading class after first hover Sep 6, 2019
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.

safari: strange inline pane cuts in safari
4 participants