Skip to content

Commit 4638e84

Browse files
docs: ✏️ Fix storybook props (#387)
Fix zoomAnimation.size default value Fix lockAxisX and lockAxisY, which were previously a copy paste error from activationKeys
1 parent 6c2c39c commit 4638e84

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/stories/docs/props.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -225,16 +225,16 @@ export const wrapperPropsTable: ComponentProps = {
225225
"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.",
226226
},
227227
lockAxisX: {
228-
type: ["string[]"],
229-
defaultValue: String(initialSetup.panning.activationKeys),
228+
type: ["boolean"],
229+
defaultValue: String(initialSetup.panning.lockAxisX),
230230
description:
231-
"List of keys which, when held down, should activate this feature.",
231+
"Disable the panning feature for the X axis (prevents horizontal panning).",
232232
},
233233
lockAxisY: {
234-
type: ["string[]"],
235-
defaultValue: String(initialSetup.panning.activationKeys),
234+
type: ["boolean"],
235+
defaultValue: String(initialSetup.panning.lockAxisY),
236236
description:
237-
"List of keys which, when held down, should activate this feature.",
237+
"Disable the panning feature for the Y axis (prevents vertical panning).",
238238
},
239239
activationKeys: {
240240
type: ["string[]"],
@@ -326,7 +326,7 @@ export const wrapperPropsTable: ComponentProps = {
326326
},
327327
size: {
328328
type: ["number"],
329-
defaultValue: String(initialSetup.zoomAnimation.disabled),
329+
defaultValue: String(initialSetup.zoomAnimation.size),
330330
description:
331331
"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.",
332332
},

0 commit comments

Comments
 (0)