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

Configurable plot cursor "snap" radius #4519

Closed
bellwether-softworks opened this issue May 21, 2024 · 1 comment · Fixed by #4520
Closed

Configurable plot cursor "snap" radius #4519

bellwether-softworks opened this issue May 21, 2024 · 1 comment · Fixed by #4520

Comments

@bellwether-softworks
Copy link

First, apologies if this has been asked already; I looked but didn't managed to identify an existing issue to track this need.

When viewing the plot, the cursor often jumps a considerable distance to snap to the nearest available point. Being able to modify this distance (including disabling it altogether, perhaps by zeroing it out) would be helpful for some scenarios where hovering near a point is important.

Currently, the radius appears to be hard-coded; I'd request a property at the struct level to override.

@haricot
Copy link
Contributor

haricot commented May 22, 2024

If you don't want any information about the specified item, you can use for example:
plot_ui.line(line.name("Line with fill")).allow_hover(false)

Otherwise @YgorSouza PR might well come in handy.

YgorSouza added a commit to YgorSouza/egui that referenced this issue May 27, 2024
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 a pull request may close this issue.

2 participants