From 8f61e737a7d4ff1c2e5fc418a1dd6836d5fd3397 Mon Sep 17 00:00:00 2001 From: Cristian Necula Date: Sun, 10 Dec 2023 00:13:05 +0200 Subject: [PATCH] fix: next slide is wrapped for part of the animation Barely noticeable without slowing down the animation, but caused a nasty flicker effect. --- src/use-slider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use-slider.ts b/src/use-slider.ts index 4c2e6a1..4307b92 100644 --- a/src/use-slider.ts +++ b/src/use-slider.ts @@ -20,7 +20,7 @@ interface SlideRef extends Slide { } export const styles = { - host: { position: 'relative', display: 'block', overflow: 'hidden' }, + host: { position: 'relative', display: 'flex', overflow: 'hidden' }, slide: { position: 'static', width: '100%',