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 numeric scrub in case of body is scrollable (#1916)

Ivan Starkov09e81f08ca40
diff --git a/packages/design-system/src/components/primitives/numeric-gesture-control.ts b/packages/design-system/src/components/primitives/numeric-gesture-control.ts
index 8b939cd024..9e19039ef8 100644
--- a/packages/design-system/src/components/primitives/numeric-gesture-control.ts
+++ b/packages/design-system/src/components/primitives/numeric-gesture-control.ts
@@ -258,7 +258,7 @@ const requestPointerLock = (
cursorNode.style.filter = `drop-shadow(${
state.direction === "horizontal" ? "0 1px" : "1px 0"
} 1.1px rgba(0,0,0,.4))`;
- cursorNode.style.position = "absolute";
+ cursorNode.style.position = "fixed";
cursorNode.style.zIndex = Number.MAX_SAFE_INTEGER.toString();
cursorNode.style.left = `${event.clientX}px`;
cursorNode.style.top = `${event.clientY}px`;