mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 08:09:32 +02:00
bug1197: Correct horizontal scrollbar position at extreme zoom-in
This commit is contained in:
parent
905ea0ce22
commit
d776f25830
@ -1529,7 +1529,7 @@ void AudacityProject::SetHorizontalThumb(double scrollto)
|
|||||||
{
|
{
|
||||||
wxInt64 max = mHsbar->GetRange() - mHsbar->GetThumbSize();
|
wxInt64 max = mHsbar->GetRange() - mHsbar->GetThumbSize();
|
||||||
int pos = std::min(max, std::max(wxInt64(0), PixelWidthBeforeTime(scrollto)));
|
int pos = std::min(max, std::max(wxInt64(0), PixelWidthBeforeTime(scrollto)));
|
||||||
mHsbar->SetThumbPosition(pos);
|
mHsbar->SetThumbPosition(pos * mViewInfo.sbarScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user