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 updates to support enabling particular bars and programmatical… #1509

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

rjwittams
Copy link
Collaborator

  • Enable individual scroll bars
  • Allow scrolling one axis at a time programatically.

These are the scroll changes needed by druid_table to synchronise scrolling (using druid_bindings).
However they would also be useful for anyone else synchronising scroll areas.

@rjwittams rjwittams requested a review from jneem January 5, 2021 23:50
@rjwittams
Copy link
Collaborator Author

There are some logical followups to these changes - I think Axis should be moved as its not Flex specific, and over time attempts should be made to reduce the amount of 'axis duplicated' code.

ScrollbarsEnabled should probably be AxesEnabled or AxisSet, and also used in ClipBox.

I did not want to make this PR into an epic to cover this - just trying to clear out what is absolutely required for druid_table to work with a stock druid.

Copy link
Collaborator

@jneem jneem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to admit to not being 100% clear on why bindings need pan_to_on_axis, but it seems like a reasonable function to have anyway...

@rjwittams rjwittams merged commit 05962bf into linebender:master Jan 6, 2021
@rjwittams rjwittams deleted the scroll-updates branch January 6, 2021 01:04
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