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

Scroll to top #2

Closed
Xhale1 opened this issue Mar 1, 2020 · 2 comments
Closed

Scroll to top #2

Xhale1 opened this issue Mar 1, 2020 · 2 comments

Comments

@Xhale1
Copy link

Xhale1 commented Mar 1, 2020

Incredible project, it's the only one I've found that properly solves the whole layered scroll view issue.

The one issue I've found is that when a user taps the status bar on the top of the screen, the entire view shifts down a bit instead of scrolling to top. Clicking twice properly scrolls to top. I'm unsure of how to fix this as I'm not as familiar with the project structure as you are.

@OfTheWolf
Copy link
Owner

OfTheWolf commented Mar 1, 2020

@Xhale1 You can disable master scrollView status bar tap gesture. See below.

class MasterViewController : UIViewController, UIScrollViewDelegate {
...
   override func loadView() {
       scrollView = UIScrollView()
       scrollView.scrollsToTop = false  //disable status bar gesture 

@Xhale1
Copy link
Author

Xhale1 commented Mar 1, 2020

Beautiful, it works like a charm!

@Xhale1 Xhale1 closed this as completed Mar 1, 2020
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