Skip to content

Commit

Permalink
docs: ✏️ Fix storybook props (#387)
Browse files Browse the repository at this point in the history
Fix zoomAnimation.size default value
Fix lockAxisX and lockAxisY, which were previously a copy paste error from activationKeys
  • Loading branch information
daustin-scottlogic authored Jun 28, 2023
1 parent 6c2c39c commit 4638e84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/stories/docs/props.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,16 @@ export const wrapperPropsTable: ComponentProps = {
"Disable the panning velocity feature. It's triggered when you release the mouse button so the content is still moving after it and slowing down with calculated time.",
},
lockAxisX: {
type: ["string[]"],
defaultValue: String(initialSetup.panning.activationKeys),
type: ["boolean"],
defaultValue: String(initialSetup.panning.lockAxisX),
description:
"List of keys which, when held down, should activate this feature.",
"Disable the panning feature for the X axis (prevents horizontal panning).",
},
lockAxisY: {
type: ["string[]"],
defaultValue: String(initialSetup.panning.activationKeys),
type: ["boolean"],
defaultValue: String(initialSetup.panning.lockAxisY),
description:
"List of keys which, when held down, should activate this feature.",
"Disable the panning feature for the Y axis (prevents vertical panning).",
},
activationKeys: {
type: ["string[]"],
Expand Down Expand Up @@ -326,7 +326,7 @@ export const wrapperPropsTable: ComponentProps = {
},
size: {
type: ["number"],
defaultValue: String(initialSetup.zoomAnimation.disabled),
defaultValue: String(initialSetup.zoomAnimation.size),
description:
"Thanks to size, we can control the zoom out values larger than that controlled by the value of another 'minScale' prop. This results in an animated return of the value to the minimum scale when the zooming has finished. This works for both touchpad zooming and pinching.",
},
Expand Down

0 comments on commit 4638e84

Please sign in to comment.