mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
disable touch scroll completely
This commit is contained in:
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",
|
||||
},
|
||||
|
||||
+3
-1
@@ -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={() => {
|
||||
|
||||
Reference in new issue
Block a user