mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-16 14:13:53 +01:00
Make right half of VRuler inactive.
This is a buffer zone to reduce risk of accidental activation of VRuler scaling.
This commit is contained in:
@@ -3497,7 +3497,8 @@ void TrackPanelCellIterator::UpdateRect()
|
||||
}
|
||||
case CellType::VRuler:
|
||||
mRect.x = kTrackInfoWidth;
|
||||
mRect.width = mPanel->GetLeftOffset() - mRect.x;
|
||||
// Only half the VRuler is active.
|
||||
mRect.width = (mPanel->GetLeftOffset() - mRect.x)/2.0;
|
||||
mRect.y += kTopMargin;
|
||||
mRect.height -= (kBottomMargin + kTopMargin);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user