Skip to content

Commit 97cf3f5

Browse files
committed
Fix dragging on cards to scroll on mobile :)
1 parent 12b16ad commit 97cf3f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/grid/Draggable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ const Draggable:FC<DraggableProps> = (props) => {
1414
});
1515
const style = transform ? {
1616
transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
17-
touchAction: "none",
17+
touchAction: isDragging ? "none" : "auto",
1818
} : {
19-
touchAction: "none",
19+
touchAction: isDragging ? "none" : "auto",
2020
};
2121

2222
const styleClasses = `

0 commit comments

Comments
 (0)