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
  • Loading branch information
Callie Riggins committed Feb 7, 2024
1 parent fe4339f commit f24d87a
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 @@ -889,7 +889,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 @@ -902,7 +902,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 f24d87a

Please sign in to comment.