fix: fixed scrolling by draggable on mobile
This commit is contained in:
@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user