1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Spectrum: Fix mouse wheel to zoom in waterfall

This commit is contained in:
Jon Beniston 2022-06-24 11:55:52 +01:00
parent 1ad54ef2f5
commit cbd663f2af

View File

@ -3363,7 +3363,7 @@ void GLSpectrum::wheelEvent(QWheelEvent *event)
#else #else
const QPointF& ep = event->pos(); const QPointF& ep = event->pos();
#endif #endif
if (pointInWaterfallOrSpectrogram(ep)) if (m_display3DSpectrogram && pointInWaterfallOrSpectrogram(ep))
{ {
// Scale 3D spectrogram when mouse wheel moved // Scale 3D spectrogram when mouse wheel moved
// Some mice use delta in steps of 120 for 15 degrees // Some mice use delta in steps of 120 for 15 degrees