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

Add support for transition events. #1309

Merged
merged 4 commits into from
Oct 7, 2022
Merged

Add support for transition events. #1309

merged 4 commits into from
Oct 7, 2022

Conversation

bogdan2412
Copy link
Contributor

No description provided.

@hhugo
Copy link
Member

hhugo commented Oct 3, 2022

Thanks.

It would be nice to perform the corresponding changes in lib/lwt/lwt_js_events.ml and cleanup the outdated implementation that exists for transitionend.

Can you also add a changelog entry ?

@hhugo hhugo removed the no changelog label Oct 3, 2022
@bogdan2412
Copy link
Contributor Author

I made an attempt, let me know if it's reasonable or not.

One behaviour difference here that seems maybe hard to avoid - previously we tried to identify a kind of transitionend event that is supported by the browser by trying out a bunch of different options and if we failed to find any, then we'd end up returning from [transitionend] immediately, whereas now we hang forever. That both seems to only potentially be a problem in fairly ancient browsers, but also seems more correct anyway?

lib/lwt/lwt_js_events.ml Outdated Show resolved Hide resolved
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.

2 participants