Re: [csswg-drafts] [scroll-animations] Should animation events fire every time active range is left / reentered? (#4324)

Good questions. Regarding the finish events, I think the way the [CSS Animations Level 2 event dispatch](https://drafts.csswg.org/css-animations-2/#event-dispatch) is defined would work pretty well in these cases. Since Web Animations doesn't have a start event, however, it's tricky to know what to do in the scrolling backwards case. Maybe we need to add that event.

Regarding cancel events, I also agree that we probably shouldn't be dispatching those. We probably need to tweak either the definition of the idle state or cancel event dispatch so that we get finish events instead of cancel events, probably the former. I suspect this overlaps with https://github.com/w3c/csswg-drafts/issues/2066 somewhat.

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4324#issuecomment-532474581 using your GitHub account

Received on Wednesday, 18 September 2019 01:04:19 UTC