Skip to content

Commit

Permalink
Refactor: dragElastic on tracks carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardsavin committed May 22, 2023
1 parent 9dfbf7c commit 9d4854e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/tracks-carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const TracksCarousel = ({ tracks }: { tracks: TrackData }) => {
transition={{ duration: 0.6 }}
drag="x"
dragConstraints={{ left: 0, right: 0 }}
dragElastic={0.25}
dragElastic={0.04}
onDragEnd={(e, { offset, velocity }) => {
const swipe = swipePower(offset.x, velocity.x);
if (swipe < -swipeConfidenceThreshold) {
Expand Down

0 comments on commit 9d4854e

Please sign in to comment.