From f760aba7dd0d20d42f8ab76da3ee8903f082e29a Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Sat, 17 Apr 2021 23:05:53 +0200 Subject: [PATCH] Fixed waterfall bug --- core/src/gui/widgets/waterfall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/gui/widgets/waterfall.cpp b/core/src/gui/widgets/waterfall.cpp index 49b43e26..c25ec1e6 100644 --- a/core/src/gui/widgets/waterfall.cpp +++ b/core/src/gui/widgets/waterfall.cpp @@ -359,7 +359,7 @@ namespace ImGui { } // Finally, if nothing else was selected, just move the VFO - if (ImGui::IsMouseDown(ImGuiMouseButton_Left)) { + if (ImGui::IsMouseDown(ImGuiMouseButton_Left) && (mouseInFFT|mouseInWaterfall)) { if (selVfo != NULL) { int refCenter = mousePos.x - (widgetPos.x + 50); if (refCenter >= 0 && refCenter < dataWidth) {