Skip to content

Commit

Permalink
Print out error when failing to calculate the rangeStart and rangeEnd (
Browse files Browse the repository at this point in the history
…#233)

Co-authored-by: Callie Riggins <[email protected]>
  • Loading branch information
calinoracation and Callie Riggins authored Feb 8, 2024
1 parent 8014acf commit 2c01630
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proxy-animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ function autoAlignStartTime(details) {
// In the case of view timelines, it requires a calculation based on the proportion of the cover range.
try {
startOffset = CSS.percent(fractionalStartDelay(details) * 100);
} catch {
} catch (e) {
// TODO: Validate supported values for range start, to avoid exceptions when resolving the values.

// Range start is invalid, falling back to default value
Expand All @@ -905,7 +905,7 @@ function autoAlignStartTime(details) {
// In the case of view timelines, it requires a calculation based on the proportion of the cover range.
try {
endOffset = CSS.percent((1 - fractionalEndDelay(details)) * 100);
} catch {
} catch (e) {
// TODO: Validate supported values for range end, to avoid exceptions when resolving the values.

// Range start is invalid, falling back to default value
Expand Down

0 comments on commit 2c01630

Please sign in to comment.