Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-6936): hover timeout for the player ui. #23

Merged
merged 5 commits into from
Aug 14, 2017
Merged

Conversation

dvh91
Copy link

@dvh91 dvh91 commented Aug 8, 2017

No description provided.

@dvh91 dvh91 changed the title fix(FEC-6936): hover timeout for the player Ui. fix(FEC-6936): hover timeout for the player ui. Aug 8, 2017
@dvh91 dvh91 requested a review from OrenMe August 8, 2017 10:07
this.hoverTimeout = setTimeout(() => {
this.props.removePlayerClass('hover');
this.setState({hover: false});
}, 3000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be externalized as a config

@@ -18,6 +18,7 @@ const mapStateToProps = state => ({
@connect(mapStateToProps, bindActions(actions))
class Shell extends BaseComponent {
state: Object;
hoverTimeout: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

number?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's the timeout function. not the timeout ms value.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
setTimeout returns an ID to the timeout handler, it's a positive integer value which identifies the timer created by the call to setTimeout();

@@ -18,6 +18,7 @@ const mapStateToProps = state => ({
@connect(mapStateToProps, bindActions(actions))
class Shell extends BaseComponent {
state: Object;
hoverTimeout: any;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
setTimeout returns an ID to the timeout handler, it's a positive integer value which identifies the timer created by the call to setTimeout();

@dvh91 dvh91 merged commit f9de374 into master Aug 14, 2017
@dvh91 dvh91 deleted the hide-controls-delay branch August 14, 2017 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants