flackr / scroll-timeline

A polyfill of ScrollTimeline.
Apache License 2.0
891 stars 84 forks source link

Prevent redundant updates to timelines and animations #194

Closed johannesodland closed 5 months ago

johannesodland commented 6 months ago

Calls to updateMeasurements() schedules a task to update timelines and animations.

updateMeasurements() can potentially be called multiple times before the scheduled task is executed. If a task is already scheduled, scheduling new tasks would be redundant.