epezent / epezent/implot

Cannot scroll/zoom primary axis when linked to secondary

Open
#544 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
6.2k
Forks
693
PR merge metrics
No merged PRs in 30d

Description

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.

https://github.com/epezent/implot/assets/1198364/35b655c5-a984-4397-b2a9-adf5f144c1f1

```C++
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();
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.