disable touch scroll completely

This commit is contained in:
Roman Pominov committed 2022-07-21 17:20:29 +03:00
1 parent 23a04c56af
commit 2ecc6c6564
2 files changed
+5 -2

No files matched your search

@@ -281,7 +281,8 @@ export const Canvas = () => {
width: 500,
height: 500,
overflow: "auto",
touchAction: dragItemId === undefined ? "none" : "auto",
// to make DnD work we have to disable scrolling using touch
touchAction: "none",
"[data-id]": {
cursor: dragItemId === undefined ? "grab" : "default",
},
@@ -139,7 +139,9 @@ export const SortableList = ({
overflow: "auto",
background: "white",
color: "black",
touchAction: dragItemId === undefined ? "none" : "auto",
// to make DnD work we have to disable scrolling using touch
touchAction: "none",
}}
ref={autoScrollHandlers.targetRef}
onScroll={() => {