From 9477ef36e19ade2de24453b205d1b6de52d9606f Mon Sep 17 00:00:00 2001 From: Richard Scarrott Date: Fri, 23 Aug 2024 16:04:16 +0100 Subject: [PATCH] Fix up --- src/use-snap-carousel.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/use-snap-carousel.tsx b/src/use-snap-carousel.tsx index 18f22d8..464b179 100644 --- a/src/use-snap-carousel.tsx +++ b/src/use-snap-carousel.tsx @@ -288,7 +288,6 @@ const getScrollMarginUsedValue = (el: HTMLElement, pos: 'left' | 'top') => { const scrollMargin = style.getPropertyValue(`scroll-margin-${pos}`) || '0px'; // https://developer.mozilla.org/en-US/docs/Web/CSS/length // https://www.w3.org/TR/css3-values/#length-value - // alert(scrollMargin); const invalidMsg = `Unsupported scroll margin value, expected value, received ${scrollMargin}`; assert(scrollMargin.endsWith('px'), invalidMsg); // Even scroll-margin: 0 should return "0px" const value = parseInt(scrollMargin);