Skip to content

Commit

Permalink
chore: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
miracles1919 committed Jun 20, 2023
1 parent f147d5d commit 1212307
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/image-viewer/slides.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export const Slides = forwardRef<SlidesRef, SlidesType>((props, ref) => {
const maxIndex = minIndex + 1
const velocityOffset =
Math.min(state.velocity[0] * 2000, slideWidth) * state.direction[0]
console.log('offsetX', offsetX, velocityOffset, slideWidth)
swipeTo(
bound(
Math.round((offsetX + velocityOffset) / slideWidth),
Expand Down

0 comments on commit 1212307

Please sign in to comment.