Audio visualizer: zoom with control key + scroll wheel.

This commit is contained in:
J.D. Purcell 2015-09-07 18:46:50 -04:00
parent e44aea6609
commit 41df7363c8

View File

@ -1708,6 +1708,16 @@ namespace Nikse.SubtitleEdit.Controls
if (_wavePeaks == null)
return;
if (ModifierKeys == Keys.Control)
{
if (e.Delta > 0)
ZoomIn();
else
ZoomOut();
return;
}
int delta = e.Delta;
if (!MouseWheelScrollUpIsForward)
delta = delta * -1;