Skip to content

Commit

Permalink
Fix regression due to handling of normal range (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesodland authored Feb 8, 2024
1 parent 0c39e85 commit 38d149a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/proxy-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -959,14 +959,17 @@ function getNormalEndRange(timeline) {
}

function parseAnimationRange(timeline, value) {
if (!value)
return {
start: 'normal',
end: 'normal',
};

const animationRange = {
start: 'normal',
end: 'normal',
start: getNormalStartRange(timeline),
end: getNormalEndRange(timeline),
};

if (!value)
return animationRange;

if (timeline instanceof ViewTimeline) {
// Format:
// <start-name> <start-offset> <end-name> <end-offset>
Expand Down

0 comments on commit 38d149a

Please sign in to comment.