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

Allow box zoom in any direction for plots #2028

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Sep 8, 2022

Previously only the top-left to bottom-right direction worked.

};
if new_bounds.is_valid() {
transform.set_bounds(new_bounds);
auto_bounds = false.into();
} else {
auto_bounds = true.into();
Copy link
Owner

Choose a reason for hiding this comment

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

why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea why it was there in the first place, or if it's still possible to trigger.

Copy link
Owner

Choose a reason for hiding this comment

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

If you don't know why it was there, maybe it is not a good idea to remove it? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want box zoom to ever trigger auto bounds, we already have double clicking to reset the view.

@emilk emilk merged commit 2842d39 into emilk:master Sep 9, 2022
@Zoxc Zoxc deleted the plot-zoom branch September 9, 2022 19:32
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