mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-10 14:35:56 +09:00
linter
This commit is contained in:
1 parent
9a08533b19
commit
d94e8a4e16
1 file changed
+2
-3
@@ -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 }) => {
|
||||
|
||||
Reference in new issue
Block a user