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

Crosshair plugin - last point selection edge case visual fix #1040

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

Conversation

n-gist
Copy link

@n-gist n-gist commented May 20, 2023

Crosshair draws its lines at position +0.5 of pixel size to get crisp lines, but if the selected point is at the end of graph, this results in drawing the line off-graph. To avoid this and get the line visible, the rightGap option has to be set 1+.
Below is two graphs, which has rightGap = 1 and 0 respectively

crhLastpoint

I thought about several solutions, but it seems like just fixing the edge case fits best

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.

None yet

1 participant