We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4691d8a commit d912beaCopy full SHA for d912bea
src/Carousel.tsx
@@ -50,9 +50,9 @@ function Carousel<T>(
50
panGestureHandlerProps,
51
});
52
53
- const width: number = props.vertical ? 0 : Math.round(props.width || 0);
54
- const height: number = props.vertical ? Math.round(props.height || 0) : 0;
55
- const size: number = vertical ? height : width;
+ const width = props.vertical ? 0 : Math.round(props.width || 0);
+ const height = props.vertical ? Math.round(props.height || 0) : 0;
+ const size = vertical ? height : width;
56
57
const layoutStyle = React.useMemo(() => {
58
return {
0 commit comments