Spectrum: Fix mouse wheel to zoom in waterfall

pull/1304/head
Jon Beniston 2022-06-24 11:55:52 +01:00
rodzic 1ad54ef2f5
commit cbd663f2af
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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