From a6de492047d572040904811b8b838b7053a3c66e Mon Sep 17 00:00:00 2001 From: Luke Berndt Date: Wed, 25 Jan 2023 08:13:54 -0500 Subject: [PATCH] Update CallPlayer.js --- frontend/src/Call/CallPlayer.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/Call/CallPlayer.js b/frontend/src/Call/CallPlayer.js index 554c76b..b85e61e 100644 --- a/frontend/src/Call/CallPlayer.js +++ b/frontend/src/Call/CallPlayer.js @@ -50,6 +50,7 @@ function CallPlayer(props) { const {callLink,callDownload,callTweet} = useCallLink(currentCall) const dispatch = useDispatch(); + const stickyRef = useRef(); // lets us get the Y Scroll offset for the Call List const positionRef = useRef(); // lets us get the Y Scroll offset for the Call List const shouldPlayAddCallRef = useRef(); // we need to do this to make the current value of isPlaying available in the socket message callback shouldPlayAddCallRef.current = (!isPlaying && autoPlay)?true:false; @@ -120,8 +121,8 @@ function CallPlayer(props) { return ( - <> - +
+ - +
); }