Browse Source

Spectrum: Fix mouse wheel to zoom in waterfall

chirpmodem-v8.0.0
Jon Beniston 4 years ago
parent
commit
cbd663f2af
  1. 2
      sdrgui/gui/glspectrum.cpp

2
sdrgui/gui/glspectrum.cpp

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

Loading…
Cancel
Save