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

feat(Carousel): Add touch swipe support #1731

Merged

Conversation

Ashniu123
Copy link
Contributor

@Ashniu123 Ashniu123 commented Dec 16, 2019

  • Bug fix
  • New feature
  • Chore
  • Breaking change
  • There is an open issue which this change addresses
  • I have read the CONTRIBUTING document.
  • My commits follow the Git Commit Guidelines
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

#1696

@TheSharpieOne
Copy link
Member

This looks good, but can we expose a prop to control if touch is enabled (similar to bootstrap). It can default to true.
Also, can we check the y-axis to not trigger the swipe if y-movement is more than x-movement (for people just swiping to scroll up/down)

Ashniu123 and others added 4 commits December 16, 2019 22:35
Do not store touch points in state since they are not rendered and do not need to trigger a re-render.
@Ashniu123
Copy link
Contributor Author

Look good. Merge into master and close issue?

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.

None yet

2 participants