mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
reassign modifier keys for vruler mousewheel
This commit is contained in:
parent
5697f77a06
commit
2217d1646e
@ -6267,8 +6267,10 @@ void TrackPanel::HandleWheelRotationInVRuler
|
||||
{
|
||||
if (pTrack->GetKind() == Track::Wave) {
|
||||
WaveTrack *const wt = static_cast<WaveTrack*>(pTrack);
|
||||
if (event.CmdDown() &&
|
||||
wt->GetWaveformSettings().scaleType == WaveformSettings::stLogarithmic) {
|
||||
const bool isDB =
|
||||
wt->GetDisplay() == WaveTrack::Waveform &&
|
||||
wt->GetWaveformSettings().scaleType == WaveformSettings::stLogarithmic;
|
||||
if (isDB && event.ShiftDown()) {
|
||||
// Vary the bottom of the dB scale, but only if the midline is visible
|
||||
float min, max;
|
||||
wt->GetDisplayBounds(&min, &max);
|
||||
@ -6293,12 +6295,15 @@ void TrackPanel::HandleWheelRotationInVRuler
|
||||
else
|
||||
return;
|
||||
}
|
||||
else {
|
||||
else if (event.CmdDown()) {
|
||||
HandleWaveTrackVZoom(
|
||||
mTracks, rect, event.m_y, event.m_y,
|
||||
wt, false, (event.m_wheelRotation < 0),
|
||||
true);
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
||||
UpdateVRuler(pTrack);
|
||||
Refresh(false);
|
||||
MakeParentModifyState(true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user