Skip to content

Commit d6506bc

Browse files
committed
feat: 불필요한 코드 제거
1 parent e928c33 commit d6506bc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/bds-ui/src/components/carousel/hooks/use-carousel-touch.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ export const useCarouselTouch = ({
8686
const containerWidth = e.currentTarget.clientWidth || 1;
8787
const dragOffsetPercent = (diff / containerWidth) * 100;
8888

89-
// autoPlay 모드에서는 드래그만 처리
9089
if (autoPlay) {
9190
const newState = controller.handleDragEnd(
9291
carouselState,
@@ -98,7 +97,6 @@ export const useCarouselTouch = ({
9897

9998
onStateUpdate(newState);
10099
} else {
101-
// 수동 모드에서는 드래그 vs 클릭 구분
102100
if (hasMoved) {
103101
const newState = controller.handleDragEnd(
104102
carouselState,

0 commit comments

Comments
 (0)