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

Give ScrollLayouts a "snap to" configuration parameter #4

Open
bendemboski opened this issue May 5, 2011 · 0 comments
Open

Give ScrollLayouts a "snap to" configuration parameter #4

bendemboski opened this issue May 5, 2011 · 0 comments

Comments

@bendemboski
Copy link
Owner

This only makes sense if we implement #3. It we do implement #3 and have configurable intervals, then it would also be very useful to have a configuration parameter that instructs the scrollview to "snap to" the interval. In other words, rather than the observer (e.g. the hosting Dialog) knowing what the interval is and rounding down to the nearest interval as some do now, this would be encapsulated at a lower level.

This would probably involve the SliderContainer hiding this information -- all of the ScrollLayouts behave exactly as they do now, but the SliderContainer only notifies its observer when the time crosses an interval boundary, and then it sends the time of that boundary.

We might be able to get fancier and restrict the movement of the scrollers so they stick to their value until scrolled far enough, and then do a quick "bounce" to the next value.

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

1 participant