diff --git a/src/components/SpeedControl.vue b/src/components/SpeedControl.vue index 8931c47..87934bd 100644 --- a/src/components/SpeedControl.vue +++ b/src/components/SpeedControl.vue @@ -94,7 +94,7 @@ > (), { rateDelta: 10, useInline: false, modelValue: false, + hideMoreControls: false, }); const minSpeed = 1; diff --git a/src/stories/SpeedControl.stories.ts b/src/stories/SpeedControl.stories.ts index bd5f20d..92edfa6 100644 --- a/src/stories/SpeedControl.stories.ts +++ b/src/stories/SpeedControl.stories.ts @@ -45,5 +45,6 @@ export const Primary: Story = { showStatus: false, rateDelta: 10, modelValue: false, + hideMoreControls: false, } }; diff --git a/src/types.ts b/src/types.ts index cac41de..61cf3b3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -317,6 +317,8 @@ export interface SpeedControlProps { showStatus?: boolean; /** The factor by which to adjust the WWT speed when speeding up or down */ rateDelta?: number; + /** Whether or not to display the additional speed controls */ + hideMoreControls?: boolean; } /** An async function taking an input string and returning a collection of MapBox Features */