1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 09:48:45 -05:00

Merge pull request #1570 from srcejon/fix_channel_freq_while_dragging

Spectrum: Keep frequency displayed while channel is being dragged
This commit is contained in:
Edouard Griffiths 2023-01-23 21:33:25 +01:00 committed by GitHub
commit 5ef5b2a53d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3930,12 +3930,17 @@ void GLSpectrumView::mouseMoveEvent(QMouseEvent* event)
}
}
else if (m_channelMarkerStates[i]->m_channelMarker->getHighlighted())
{
// 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();
}
}
}
}
if (m_cursorState == CSChannel)
{