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) {
|
if (pTrack->GetKind() == Track::Wave) {
|
||||||
WaveTrack *const wt = static_cast<WaveTrack*>(pTrack);
|
WaveTrack *const wt = static_cast<WaveTrack*>(pTrack);
|
||||||
if (event.CmdDown() &&
|
const bool isDB =
|
||||||
wt->GetWaveformSettings().scaleType == WaveformSettings::stLogarithmic) {
|
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
|
// Vary the bottom of the dB scale, but only if the midline is visible
|
||||||
float min, max;
|
float min, max;
|
||||||
wt->GetDisplayBounds(&min, &max);
|
wt->GetDisplayBounds(&min, &max);
|
||||||
@ -6293,12 +6295,15 @@ void TrackPanel::HandleWheelRotationInVRuler
|
|||||||
else
|
else
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else if (event.CmdDown()) {
|
||||||
HandleWaveTrackVZoom(
|
HandleWaveTrackVZoom(
|
||||||
mTracks, rect, event.m_y, event.m_y,
|
mTracks, rect, event.m_y, event.m_y,
|
||||||
wt, false, (event.m_wheelRotation < 0),
|
wt, false, (event.m_wheelRotation < 0),
|
||||||
true);
|
true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
UpdateVRuler(pTrack);
|
UpdateVRuler(pTrack);
|
||||||
Refresh(false);
|
Refresh(false);
|
||||||
MakeParentModifyState(true);
|
MakeParentModifyState(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user