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

#148 Autoplay and stop on hover causes a warning. #149

Merged
merged 4 commits into from
Jul 4, 2017
Merged

#148 Autoplay and stop on hover causes a warning. #149

merged 4 commits into from
Jul 4, 2017

Conversation

alexbuis
Copy link

@alexbuis alexbuis commented Jul 4, 2017

No description provided.

Alex Buis added 2 commits July 4, 2017 13:19
- Added a mouse entered state so we know when not to activate the auto play feature.
@@ -203,9 +204,15 @@ class Carousel extends Component {
}

stopOnHover = () => {
this.setState({isMouseEntered: true});
Copy link
Owner

Choose a reason for hiding this comment

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

Can you please add test cases for these changes?

Copy link
Author

Choose a reason for hiding this comment

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

@leandrowd I've now added tests for the isMouseEntered state change and the stop/start auto play functionality if a mouse enters/leaves.

Alex Buis added 2 commits July 4, 2017 14:57
- Added build version of carousel.
- Added tests for the internal state isMouseEntered and tests for enabeling and disabeling the auto play function on mouse enter / leave.
@leandrowd leandrowd merged commit 92cb43d into leandrowd:master Jul 4, 2017
@leandrowd
Copy link
Owner

Published as 3.1.24. Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants