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.

fix: navigator scrolling starts too early (#3932)

Oleg Isonen7b80f1507da5
diff --git a/packages/design-system/src/components/primitives/dnd/use-auto-scroll.ts b/packages/design-system/src/components/primitives/dnd/use-auto-scroll.ts
index b6c4fce212..b49f3db916 100644
--- a/packages/design-system/src/components/primitives/dnd/use-auto-scroll.ts
+++ b/packages/design-system/src/components/primitives/dnd/use-auto-scroll.ts
@@ -148,7 +148,7 @@ export const useAutoScroll = (
};
const {
- edgeDistanceThreshold = 100,
+ edgeDistanceThreshold = 20,
minSpeed = 1,
maxSpeed = 500,
} = latestProps.current;