mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-02 09:54:42 +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:
@@ -62,6 +62,10 @@ public:
|
||||
, bool ignoreFisheye = false
|
||||
) const;
|
||||
|
||||
// This always ignores the fisheye. Use with caution!
|
||||
// You should prefer to call TimeToPosition twice, for endpoints, and take the difference!
|
||||
double TimeRangeToPixelWidth(double timeRange) const;
|
||||
|
||||
double OffsetTimeByPixels(double time, wxInt64 offset, bool ignoreFisheye = false) const
|
||||
{
|
||||
return PositionToTime(offset + TimeToPosition(time, ignoreFisheye), ignoreFisheye);
|
||||
|
||||
Reference in New Issue
Block a user