File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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 } ` ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { styled } from "@material-ui/core/styles"
44import colorAlpha from "color-alpha"
55import useColors from "../../hooks/use-colors"
66import { formatTime } from "../../utils/format-time"
7+ import { useTimeCursorTime } from "../../hooks/use-time-cursor-time"
78import HighlightValueLabels from "../HighlightValueLabels"
89
910const 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,
You can’t perform that action at this time.
0 commit comments