Skip to content

Allow x/y only zooming by click-dragging respective axis (#17) #102

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

damageboy
Copy link

@damageboy damageboy commented Apr 25, 2025

Screen.Recording.2025-04-25.at.20.58.23.mov

@@ -388,6 +390,16 @@ impl<'a> Plot<'a> {
self
}

/// Whether to allow dragging in the axis areas to automaticall zoom the plot. Default: `true`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we really have this true as default?

Copy link
Author

Choose a reason for hiding this comment

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

I don't really mind. I'll change this to false.
Would you also like me to change the demo app to include options to toggle this behaviour on and off?

Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice

Copy link
Author

Choose a reason for hiding this comment

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

Done!
Repushed to my branch and updated this PR to e031001

@damageboy
Copy link
Author

Is there anything else I can do to move this forward?

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