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.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
fix: Movement jumps on windows (#4296)
Ivan Starkov87e2a1ceb8a2
diff --git a/packages/design-system/src/components/primitives/numeric-gesture-control.ts b/packages/design-system/src/components/primitives/numeric-gesture-control.tsindex 69b51987a2..7f5d68888a 100644--- a/packages/design-system/src/components/primitives/numeric-gesture-control.ts+++ b/packages/design-system/src/components/primitives/numeric-gesture-control.ts@@ -287,7 +287,8 @@ const requestPointerLock = (// other browsers show a warning banner, making the use of it in this scenario subpar: in which case we fallback to using non-pointerLock means:// albeit without an infinite cursor ux.if (shouldUsePointerLock) {- targetNode.requestPointerLock();+ // @ts-expect-error - unadjustedMovement is a chromium only feature, fixes random movementX|Y jumps on windows+ targetNode.requestPointerLock({ unadjustedMovement: true });const cursorNode = (targetNode.ownerDocument.querySelector("#numeric-guesture-control-cursor") ||