Skip to content

Commit

Permalink
fix(FEC-8205): playback UI isn't disappear after ads on mobile (#236)
Browse files Browse the repository at this point in the history
Update the hover state if the transition was from pre playback screen
or after an ad break.
  • Loading branch information
Dan Ziv authored and yairans committed May 8, 2018
1 parent 8ef3db3 commit 6f117b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/shell/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,10 @@ class Shell extends BaseComponent {
* @memberof Shell
*/
componentDidUpdate(prevProps: Object): void {
if (!this.props.prePlayback && prevProps.prePlayback) {
// Update the hover state if the transition was from pre playback screen
// or after an ad break
if (!this.props.prePlayback && prevProps.prePlayback ||
!this.props.adBreak && prevProps.adBreak) {
this._updatePlayerHoverState();
}
}
Expand Down

0 comments on commit 6f117b7

Please sign in to comment.