Skip to content

Commit

Permalink
Update drag gesture of InputControl with axial constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Mar 1, 2022
1 parent 00d164b commit ccdf6d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/input-control/input-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ function InputField(
}
},
{
axis: dragDirection === 'e' || dragDirection === 'w' ? 'x' : 'y',
threshold: dragThreshold,
enabled: isDragEnabled,
pointer: { capture: false },
Expand Down

0 comments on commit ccdf6d9

Please sign in to comment.