Skip to content

Commit deb48de

Browse files
committed
audio playback finish
1 parent 3674adf commit deb48de

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/components/Timeline/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const TimeCursor = styled("div")(({ left, themeColors }) => ({
4141
width: 0,
4242
height: 0,
4343
top: 0,
44-
left,
44+
left: left - 6,
4545
borderLeft: "8px solid transparent",
4646
borderRight: "8px solid transparent",
4747
borderTop: `12px solid ${themeColors.green}`,

src/components/Wave/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { styled } from "@material-ui/core/styles"
44
import colorAlpha from "color-alpha"
55
import useColors from "../../hooks/use-colors"
66
import { formatTime } from "../../utils/format-time"
7+
import { useTimeCursorTime } from "../../hooks/use-time-cursor-time"
78
import HighlightValueLabels from "../HighlightValueLabels"
89

910
const userSelectOffStyle = {
@@ -68,6 +69,11 @@ export const Wave = ({
6869
}) => {
6970
const colors = useColors()
7071

72+
const recoilTimeCursorTime = useTimeCursorTime()
73+
74+
timeCursorTime =
75+
timeCursorTime === undefined ? recoilTimeCursorTime : timeCursorTime
76+
7177
const {
7278
visibleDuration,
7379
startTimeOnGraph,

0 commit comments

Comments
 (0)