Expose setter for review timeline handlebar (#9978)

* expose setter for handlebar

* use as much resolution as possible
This commit is contained in:
Josh Hawkins
2024-02-22 08:16:37 -06:00
committed by GitHub
parent 746939ed4f
commit a5a1a54c55
3 changed files with 17 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ export type EventReviewTimelineProps = {
timelineEnd: number;
showHandlebar?: boolean;
handlebarTime?: number;
setHandlebarTime?: React.Dispatch<React.SetStateAction<number>>;
showMinimap?: boolean;
minimapStartTime?: number;
minimapEndTime?: number;
@@ -33,6 +34,7 @@ export function EventReviewTimeline({
timelineEnd,
showHandlebar = false,
handlebarTime,
setHandlebarTime,
showMinimap = false,
minimapStartTime,
minimapEndTime,
@@ -66,6 +68,7 @@ export function EventReviewTimeline({
isDragging,
setIsDragging,
currentTimeRef,
setHandlebarTime,
});
function handleResize() {