Skip to content

Commit

Permalink
fix: remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
islxyqwe committed Sep 28, 2023
1 parent 60ee042 commit 7f4940f
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const Slider = (props: { className?: string; children: React.ReactNode; safeDist
e.stopPropagation();
const rect = ref.current?.children[0]?.getBoundingClientRect();
if (rect) {
console.log(rect);
setX((x) => Math.min(rect.width - props.safeDistance, Math.max(0, x + e.deltaY)));
}
return false;
Expand Down

0 comments on commit 7f4940f

Please sign in to comment.