Skip to content

Commit

Permalink
fix: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
soonki-98 committed Oct 20, 2022
1 parent b00c926 commit 2dd9a2f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/lib/components/Carousel/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ const useCarousel = ({
setCoordinateX(0);
};

const onMouseDown = (e: React.MouseEvent) => {
setCoordinateX(e.clientX);
};

const onMouseUp = (e: React.MouseEvent) => {
if (coordinateX - e.clientX > 100) showNext();
if (e.clientX - coordinateX > 100) showPrev();
setCoordinateX(0);
};
// const onMouseDown = (e: React.MouseEvent) => {
// setCoordinateX(e.clientX);
// };

// const onMouseUp = (e: React.MouseEvent) => {
// if (coordinateX - e.clientX > 100) showNext();
// if (e.clientX - coordinateX > 100) showPrev();
// setCoordinateX(0);
// };

const playCarousel = () => {
setAutoPlayStatus(true);
Expand Down

0 comments on commit 2dd9a2f

Please sign in to comment.