fix: fixed scrolling by draggable on mobile

This commit is contained in:
2025-08-13 18:18:37 +04:00
parent 0836e4f0ca
commit 7932f3f5c8
2 changed files with 12 additions and 20 deletions

View File

@ -18,12 +18,9 @@ const DragHandle = ({ id, children, style, disabled }: Props) => {
<div
{...attributes}
{...listeners}
onTouchStart={e => !disabled && e.stopPropagation()}
onTouchMove={e => !disabled && e.stopPropagation()}
style={{
width: "100wv",
cursor: disabled ? "default" : "grab",
touchAction: disabled ? "auto" : "none",
...style,
}}
ref={setNodeRef}>