mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-26 15:03:47 +01:00
Bug1197, yet again: extreme zoom-in behavior, now Mac specific: ...
...fix differing results on Mac by calculating only in double, so that selection remains centered at extreme zoom-in for long projects (about 20 min.) and selection after about 15 min.
This commit is contained in:
@@ -63,6 +63,13 @@ wxInt64 ZoomInfo::TimeToPosition(double projectTime,
|
||||
);
|
||||
}
|
||||
|
||||
// This always ignores the fisheye. Use with caution!
|
||||
// You should prefer to call TimeToPosition twice, for endpoints, and take the difference!
|
||||
double ZoomInfo::TimeRangeToPixelWidth(double timeRange) const
|
||||
{
|
||||
return timeRange * zoom;
|
||||
}
|
||||
|
||||
bool ZoomInfo::ZoomInAvailable() const
|
||||
{
|
||||
return zoom < gMaxZoom;
|
||||
|
||||
Reference in New Issue
Block a user