Skip to content

Commit 5dbd343

Browse files
committed
fix: 드로워 드래그 영역을 핸들로만 제한하여 스크롤 충돌 해결
1 parent 40f8710 commit 5dbd343

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

components/common/side-main.tsx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ const SideMain = ({
170170
className
171171
)}
172172
style={{ height: isMobile && !fullHeight ? `${curHeight}%` : "" }}
173-
onPointerDown={dragStart}
174173
>
175174
<button
176175
className="absolute top-3 -right-12 flex items-center justify-center
@@ -193,17 +192,15 @@ const SideMain = ({
193192
/>
194193
)}
195194

196-
{!fullHeight && (
195+
{!fullHeight && dragable && (
197196
<div
198-
className="sticky top-0 py-3 bg-white dark:bg-black z-20 rounded-t-3xl web:hidden"
199-
data-type="scoroll-status-bar"
197+
className="sticky top-0 py-3 bg-white dark:bg-black z-20 rounded-t-3xl web:hidden cursor-grab active:cursor-grabbing"
198+
onPointerDown={dragStart}
199+
role="button"
200+
aria-label="드로워 높이 조절"
201+
tabIndex={0}
200202
>
201-
<div
202-
className={`w-1/6 h-1 mx-auto rounded-lg ${
203-
!dragable ? "bg-white dark:bg-black" : "bg-grey"
204-
}`}
205-
data-type="scoroll-status-bar"
206-
/>
203+
<div className="w-1/6 h-1 mx-auto rounded-lg bg-grey" />
207204
</div>
208205
)}
209206

@@ -219,9 +216,6 @@ const SideMain = ({
219216
deviceType === "ios-mobile-app" ? "pb-20" : "",
220217
bodyStyle
221218
)}
222-
onPointerDown={(e) => {
223-
e.stopPropagation();
224-
}}
225219
onScroll={onScroll}
226220
>
227221
{children}

0 commit comments

Comments
 (0)