1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-02-03 09:44:01 -05:00

Merge pull request #1304 from srcejon/fix_zoom_in_waterfall

Spectrum: Fix mouse wheel zoom in waterfall
This commit is contained in:
Edouard Griffiths 2022-06-24 15:06:18 +02:00 committed by GitHub
commit 82849f80b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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