Skip to content

Commit

Permalink
Fix: zoom and scroll conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
dzid26 committed May 23, 2024
1 parent 20e8c2b commit 03c2677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/GuiPlots.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ void Gui::drawPlots()

void Gui::drawPlotCurve(Plot* plot, ScrollingBuffer<double>& time, std::map<std::string, std::shared_ptr<Plot::Series>>& seriesMap, uint32_t curveBarPlots)
{
if (ImPlot::BeginPlot(plot->getName().c_str(), ImVec2(-1, -1), ImPlotFlags_NoChild))
if (ImPlot::BeginPlot(plot->getName().c_str(), ImVec2(-1, -1), ImPlotFlags_None))
{
if (plotHandler->getViewerState() == PlotHandler::state::RUN)
{
Expand Down Expand Up @@ -154,7 +154,7 @@ void Gui::drawPlotCurve(Plot* plot, ScrollingBuffer<double>& time, std::map<std:
}
void Gui::drawPlotBar(Plot* plot, ScrollingBuffer<double>& time, std::map<std::string, std::shared_ptr<Plot::Series>>& seriesMap, uint32_t curveBarPlots)
{
if (ImPlot::BeginPlot(plot->getName().c_str(), ImVec2(-1, -1), ImPlotFlags_NoChild))
if (ImPlot::BeginPlot(plot->getName().c_str(), ImVec2(-1, -1), ImPlotFlags_None))
{
std::vector<const char*> glabels;
std::vector<double> positions;
Expand Down

0 comments on commit 03c2677

Please sign in to comment.