Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

make it work with touch

Roman Pominov23a04c56af86
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/canvas.stories.tsx b/apps/designer/app/shared/design-system/components/primitives/dnd/canvas.stories.tsx
index ad753fe30c..7a6506acd0 100644
--- a/apps/designer/app/shared/design-system/components/primitives/dnd/canvas.stories.tsx
+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/canvas.stories.tsx
@@ -281,6 +281,7 @@ export const Canvas = () => {
width: 500,
height: 500,
overflow: "auto",
+ touchAction: dragItemId === undefined ? "none" : "auto",
"[data-id]": {
cursor: dragItemId === undefined ? "grab" : "default",
},
diff --git a/apps/designer/app/shared/design-system/components/primitives/dnd/sortable-list.stories.tsx b/apps/designer/app/shared/design-system/components/primitives/dnd/sortable-list.stories.tsx
index 6fed0dc20f..4711f33de3 100644
--- a/apps/designer/app/shared/design-system/components/primitives/dnd/sortable-list.stories.tsx
+++ b/apps/designer/app/shared/design-system/components/primitives/dnd/sortable-list.stories.tsx
@@ -139,6 +139,7 @@ export const SortableList = ({
overflow: "auto",
background: "white",
color: "black",
+ touchAction: dragItemId === undefined ? "none" : "auto",
}}
ref={autoScrollHandlers.targetRef}
onScroll={() => {