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

Sultand94e8a4e1616
diff --git a/app/shared/design-system/components/primitives/numericGestureControl.tsx b/app/shared/design-system/components/primitives/numericGestureControl.tsx
index c492ef241d..30dc7921c4 100644
--- a/app/shared/design-system/components/primitives/numericGestureControl.tsx
+++ b/app/shared/design-system/components/primitives/numericGestureControl.tsx
@@ -10,10 +10,9 @@
*/
export const numericGestureControl = (targetNode, {
initialValue = 0,
- direction = 'horizontal' || 'vertical',
- onValueChange = ({value = 0, preventDefault = () => null}) => null,
+ direction = 'horizontal',
+ onValueChange,
}) => {
- const {ownerDocument} = targetNode;
const eventNames = [ 'pointerup', 'pointerdown', 'pointermove' ];
const state = { type: '', value: initialValue, cursor: direction === 'horizontal' ? 'ew-resize' : 'ns-resize' };
const handleEvent = ({ type, target, movementY, movementX, pointerId, pressure }) => {