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

Tab Sorting #9

Open
skull-squadron opened this issue Aug 20, 2013 · 2 comments
Open

Tab Sorting #9

skull-squadron opened this issue Aug 20, 2013 · 2 comments

Comments

@skull-squadron
Copy link
Contributor

Needs some UX thought before considering coding:

-- Draft, please comment --

  1. Tap and hold for time X
  2. While the hold gesture continues, the moving tab animates into it's new position
  3. When the gesture ends, the tabs stay.

Questions:

  1. Should there be a boolean 'unmovable' tab property?
  2. Should tabs optionally shake while being moved like Springboard icon reordering?
@tonimoeckel
Copy link
Member

Thanks for participation!

A config to activate the sorting option would be great.

The procedure would be (as you said):

  1. Tap and hold for time X (set in the configs)
    1.1. (optional) When time X is reached, a highlight animation would be great to notify the user about the sorting option - like in mobile chrome
  2. While holding the tab, the tab should move according to the gesture position
  3. When the new x-positions reaches the neighbors middle, the neighbor tab should swap the position
  4. When gesture ends -> the tab should move to the corresponding position

The whole thing wasn't made for sorting in the beginning. I think we need to rewrite the core a little bit.

@skull-squadron
Copy link
Contributor Author

No worries. One obvious way that doesn't break users' code is an NSArray of indices which map the tabs' sort order to the tabitems. That way the sort array can be reordered without surprising users' code, and might be less work. Other areas prob need some tweaks and properties.

Also, on second thought, shaking might be too much of a distraction.

Finally, I'll take a look at chrome's tabs.

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