Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fixtures/view-transition/src/components/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ export default function Page({url, navigate}) {
const cleanup1 = timeline.animate(animation1);
const cleanup2 = timeline.animate(animation2);
return () => {
animation1.cancel();
animation2.cancel();
cleanup1();
cleanup2();
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2525,6 +2525,7 @@ function animateGesture(
delay: reverse ? rangeEnd : rangeStart,
duration: reverse ? rangeStart - rangeEnd : rangeEnd - rangeStart,
});
viewTransitionAnimations.push(animation);
// Let the custom timeline take control of driving the animation.
const cleanup = timeline.animate(animation);
if (cleanup) {
Expand Down
Loading