Fixed waterfall bug

This commit is contained in:
Ryzerth 2021-04-17 23:05:53 +02:00
parent b0409ad033
commit f760aba7dd

View File

@ -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) {