Skip to content

Commit 7216c67

Browse files
committed
chore: format code
1 parent f1a91a1 commit 7216c67

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/hooks/useCarouselController.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ export function useCarouselController(options: IOpts): ICarouselController {
234234
const isPositiveZero = Object.is(handlerOffsetX.value, +0);
235235
const isNegativeZero = Object.is(handlerOffsetX.value, -0);
236236
const direction = isPositiveZero
237-
? 1
238-
: isNegativeZero
239-
? -1
240-
: Math.sign(handlerOffsetX.value);
241-
237+
? 1
238+
: isNegativeZero
239+
? -1
240+
: Math.sign(handlerOffsetX.value);
241+
242242
// target offset
243243
const offset = i * size * direction;
244244
// page width size * page count

0 commit comments

Comments
 (0)