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

Suggestion: draggable text #71

Open
Leverin opened this issue Sep 9, 2014 · 1 comment
Open

Suggestion: draggable text #71

Leverin opened this issue Sep 9, 2014 · 1 comment

Comments

@Leverin
Copy link

Leverin commented Sep 9, 2014

Thanks a ton for this lib! I've implemented it in a project I'm working on and it works great.

What, in my opinion, would make it even more user friendly is if he/she would be able to manually scroll the text left/right within the label by dragging the text.

What do you think?

@cbpowell
Copy link
Owner

Definitely a good idea! I had this in mind as well, although I haven't gotten around to doing it. With the way v2.0 of MarqueeLabel is built, this should be a lot easier.

If you'd like to take a stab at it, check out David Ronnqvist's article on Controlling Animation Timing - in particular his section on the pull-to-refresh implementation. I'd imagine the way to do this with MarqueeLabel would be to hook into the CAAnimation driving the scroll and manipulate it in a similar fashion, probably in response to a pan gesture recognizer.

I'll mark this as an Improvement/Feature Request, but feel free to give it a shot and submit a pull request!

@Leverin Leverin changed the title Suggestion: draggable label Suggestion: draggable text Nov 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants