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.

linter fixes

Oleg Isonen179b5fd9b936
diff --git a/app/shared/design-system/components/primitives/numericGestureControl.stories.tsx b/app/shared/design-system/components/primitives/numericGestureControl.stories.tsx
index 99e37435f4..878acb279a 100644
--- a/app/shared/design-system/components/primitives/numericGestureControl.stories.tsx
+++ b/app/shared/design-system/components/primitives/numericGestureControl.stories.tsx
@@ -27,7 +27,7 @@ const useNumericGestureControl = ({
},
});
return () => disconnectedCallback();
- }, [direction, value]);
+ }, [direction, value, ref]);
};
const Input = ({
diff --git a/app/shared/design-system/components/primitives/numericGestureControl.ts b/app/shared/design-system/components/primitives/numericGestureControl.ts
index df7b14afb3..19c38312e9 100644
--- a/app/shared/design-system/components/primitives/numericGestureControl.ts
+++ b/app/shared/design-system/components/primitives/numericGestureControl.ts
@@ -61,7 +61,6 @@ export const numericGestureControl = (
}
case "pointerdown": {
const handlePointerLockEvent = () => {
- const { pointerLockElement } = ownerDocument;
switch (ownerDocument.pointerLockElement) {
case targetNode: {
state.offset = offset;