1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 09:18:54 -05:00

Spectrum: Keep frequency displayed while channel is being dragged

This commit is contained in:
Jon Beniston 2023-01-23 14:40:19 +00:00
parent e4b12f1c7f
commit 29c9c07b74

View File

@ -3931,8 +3931,13 @@ void GLSpectrumView::mouseMoveEvent(QMouseEvent* event)
}
else if (m_channelMarkerStates[i]->m_channelMarker->getHighlighted())
{
m_channelMarkerStates[i]->m_channelMarker->setHighlightedByCursor(false);
channelMarkerChanged();
// Don't clear highlight while dragging a channel, as we want the
// frequency of the channel to be continuously displayed
if (m_cursorState != CSChannelMoving)
{
m_channelMarkerStates[i]->m_channelMarker->setHighlightedByCursor(false);
channelMarkerChanged();
}
}
}
}