Skip to content

Commit

Permalink
fix(FEC-7110): seek bar should not be hidden when scrubbing seek bar (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvir Hazout authored and Dan Ziv committed Sep 13, 2017
1 parent c67c3f5 commit 8a0fcf9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/shell/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const mapStateToProps = state => ({
isMobile: state.shell.isMobile,
playerWidth: state.shell.playerWidth,
playerHeight: state.shell.playerHeight,
playerHover: state.shell.playerHover
playerHover: state.shell.playerHover,
seekbarDraggingActive: state.seekbar.draggingActive
});

@connect(mapStateToProps, bindActions(actions))
Expand Down Expand Up @@ -56,8 +57,10 @@ class Shell extends BaseComponent {
clearTimeout(this.hoverTimeout);
}
this.hoverTimeout = setTimeout(() => {
this.props.updatePlayerHoverState(false);
this.setState({hover: false});
if (!this.props.seekbarDraggingActive) {
this.props.updatePlayerHoverState(false);
this.setState({hover: false});
}
}, this.props.hoverTimeout || 3000);
}

Expand Down

0 comments on commit 8a0fcf9

Please sign in to comment.