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

Cannot scroll/zoom primary axis when linked to secondary #544

Open
Nahor opened this issue Dec 8, 2023 · 0 comments
Open

Cannot scroll/zoom primary axis when linked to secondary #544

Nahor opened this issue Dec 8, 2023 · 0 comments

Comments

@Nahor
Copy link

Nahor commented Dec 8, 2023

version: v0.16
branch: master

When the primary and secondary axis are linked, I can scroll/zoom using the plot area or the secondary axis. But if I do it over the primary axis, the limits are forced back to the original ones.

linked_axis.mp4
if (ImPlot::BeginPlot("LinkTest")) {
    ImPlot::SetupAxis(ImAxis_X2, nullptr, ImPlotAxisFlags_AuxDefault);

    static ImPlotRange link{0.0, 1.0};
    ImPlot::SetupAxisLinks(ImAxis_X1, &link.Min, &link.Max);
    ImPlot::SetupAxisLinks(ImAxis_X2, &link.Min, &link.Max);

    ImPlot::EndPlot();
}
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

No branches or pull requests

1 participant