From f24d87a355f8d4af3a62532af2363628b49abb08 Mon Sep 17 00:00:00 2001 From: Callie Riggins Date: Wed, 7 Feb 2024 14:42:01 -0800 Subject: [PATCH] Print out error when failing to calculate the rangeStart and rangeEnd --- src/proxy-animation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proxy-animation.js b/src/proxy-animation.js index 986fedd..1ec483e 100644 --- a/src/proxy-animation.js +++ b/src/proxy-animation.js @@ -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 @@ -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