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

Add Progressive Tab Scrolling Representation #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add Progressive Tab Scrolling Representation #17

wants to merge 1 commit into from

Conversation

kareem-hewady
Copy link

I had some feedback from a user that the line below the tab was moving in a counter intuitive way. So I modified the behavior a bit and it suits my app better this way. I thought I'd share the change in case you like it.

Progressive Scrolling is that the line below the tab titles to
represent touch movements accurately and continuously. So it doesn’t
jump suddenly as previously.
I added a new public property to enable or disable the functionality
(enabled by default).
It was done by conforming to the UIScrollViewDelegate to get the
ContentOffset and then use it to move the line. The width also changes
dynamically to accommodate the next titles.

Also a minor bug was fixed that caused the line to be stuck in its
former position when changing orientation.
@guilhermearaujo
Copy link
Owner

What exactly do you mean by "counter intuitive way"?

@kareem-hewady
Copy link
Author

Going left or right half the way and the cancelling the touch. The bar
continues all the way and then corrects the position later. The other one
if you go left half the way then go right half the way without lifting your
finger.
I know that both of them aren't the usual usecases but I thought it's worth
the modification.
On Jul 12, 2015 1:15 AM, "Guilherme Araújo" [email protected]
wrote:

What exactly do you mean by "counter intuitive way"?


Reply to this email directly or view it on GitHub
#17 (comment)
.

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