Skip to content

Commit

Permalink
fix(FEC-10052): the bottom toolbar not hiding after return from backg…
Browse files Browse the repository at this point in the history
…round on mobile devices (#523)
  • Loading branch information
Dan Ziv committed Jun 30, 2020
1 parent b1af61a commit 87bd41e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/shell/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,11 @@ class Shell extends Component {
*/
componentDidUpdate(prevProps: Object): void {
// Update the hover state if the transition was from pre playback screen
// or from paused to playing
// or after an ad break
// or in ad break
if (
(this.props.currentState === 'playing' && prevProps.currentState === 'paused') ||
(!this.props.prePlayback && prevProps.prePlayback) ||
(!this.props.adBreak && prevProps.adBreak) ||
(this.props.adBreak && !prevProps.adBreak)
Expand Down

0 comments on commit 87bd41e

Please sign in to comment.