aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/SponsorTimeEditComponent.tsx
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-01-14 18:34:23 -0500
committerAjay <[email protected]>2024-01-14 18:34:23 -0500
commit1bf67cc533c31561974e95e05de19c48f5f8d30c (patch)
treef566d1d1a5bafac85c4ea4a6d26c227b79ef8b22 /src/components/SponsorTimeEditComponent.tsx
parentf3818c2066edbb99412ffb8223984c0baabb15e0 (diff)
downloadSponsorBlock-1bf67cc533c31561974e95e05de19c48f5f8d30c.tar.gz
SponsorBlock-1bf67cc533c31561974e95e05de19c48f5f8d30c.zip
Add keybind for previewing a segment
Diffstat (limited to 'src/components/SponsorTimeEditComponent.tsx')
-rw-r--r--src/components/SponsorTimeEditComponent.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx
index 81f43753..c6369e2e 100644
--- a/src/components/SponsorTimeEditComponent.tsx
+++ b/src/components/SponsorTimeEditComponent.tsx
@@ -8,6 +8,7 @@ import SelectorComponent, { SelectorOption } from "./SelectorComponent";
import { DEFAULT_CATEGORY } from "../utils/categoryUtils";
import { getFormattedTime, getFormattedTimeToSeconds } from "../../maze-utils/src/formating";
import { asyncRequestToServer } from "../utils/requests";
+import { defaultPreviewTime } from "../utils/constants";
export interface SponsorTimeEditProps {
index: number;
@@ -671,7 +672,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
previewTime(ctrlPressed = false, shiftPressed = false, skipToEndTime = false): void {
const sponsorTimes = this.props.contentContainer().sponsorTimesSubmitting;
const index = this.props.index;
- let seekTime = 2;
+ let seekTime = defaultPreviewTime;
if (ctrlPressed) seekTime = 0.5;
if (shiftPressed) seekTime = 0.25;