Closed Shadowblitz16 closed 6 months ago
MouseWheel fires multiple times for control making scrolling 1 notch impossible.
Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 6.5.0-17-generic (64-bit) Graphics Platform: X11 Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics Memory: 15.0 GiB of RAM Graphics Processor: RENOIR
This seems to fix it...
protected override void OnMouseWheel(MouseEventArgs e) { base.OnMouseWheel(e); _wheelLock = !_wheelLock; if (_wheelLock) return; if (e.Delta < 0) ViewZoom = long.Clamp(ViewZoom-1, 1, 8); else if (e.Delta > 0) ViewZoom = long.Clamp(ViewZoom+1, 1, 8); Invalidate(); }
Fix uploaded to master
MouseWheel fires multiple times for control making scrolling 1 notch impossible.
This seems to fix it...