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 f1a91a1 commit 7216c67Copy full SHA for 7216c67
src/hooks/useCarouselController.tsx
@@ -234,11 +234,11 @@ export function useCarouselController(options: IOpts): ICarouselController {
234
const isPositiveZero = Object.is(handlerOffsetX.value, +0);
235
const isNegativeZero = Object.is(handlerOffsetX.value, -0);
236
const direction = isPositiveZero
237
- ? 1
238
- : isNegativeZero
239
- ? -1
240
- : Math.sign(handlerOffsetX.value);
241
-
+ ? 1
+ : isNegativeZero
+ ? -1
+ : Math.sign(handlerOffsetX.value);
+
242
// target offset
243
const offset = i * size * direction;
244
// page width size * page count
0 commit comments