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

How to scroll between charts on carousel #2465

Closed
vinhtnk opened this issue May 23, 2017 · 2 comments
Closed

How to scroll between charts on carousel #2465

vinhtnk opened this issue May 23, 2017 · 2 comments

Comments

@vinhtnk
Copy link

vinhtnk commented May 23, 2017

I have implemented an icarousel that contain 3 charts, the problem is I can not swipe left or right to go to next chart. Is there any way to handle this case?

@liuxuan30
Copy link
Member

if it's in UIScrollView, check @objc fileprivate func panGestureRecognized(_ recognizer: NSUIPanGestureRecognizer)

if didUserDrag && !performPanChange(translation: translation)
                {
                    if _outerScrollView !== nil
                    {
                        // We can stop dragging right now, and let the scroll view take control
                        _outerScrollView = nil
                        _isDragging = false
                    }
                }

the outer scroll view is disabled. Change it if needed

@vinhtnk
Copy link
Author

vinhtnk commented May 24, 2017

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

No branches or pull requests

2 participants