Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/SpeedControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
></icon-button>

<v-dialog
v-if="!useInline"
v-if="!useInline && !hideMoreControls"
v-model="playbackVisible"
:scrim="false"
location="top"
Expand Down Expand Up @@ -230,6 +230,7 @@ const props = withDefaults(defineProps<SpeedControlProps>(), {
rateDelta: 10,
useInline: false,
modelValue: false,
hideMoreControls: false,
});

const minSpeed = 1;
Expand Down
1 change: 1 addition & 0 deletions src/stories/SpeedControl.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ export const Primary: Story = {
showStatus: false,
rateDelta: 10,
modelValue: false,
hideMoreControls: false,
}
};
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down