Sequencer - Fixed issues with the right side

This commit is contained in:
Emmanuel BENOîT 2017-11-28 07:33:57 +01:00
parent b9cb427ae4
commit ec34bcc9bb
2 changed files with 1 additions and 2 deletions

1
TODO
View file

@ -31,7 +31,6 @@ Sync / inputs:
-> remove points that serve no purpose -> remove points that serve no purpose
* Support for overrides * Support for overrides
* Fix the various remaining issues * Fix the various remaining issues
* Zooming issues on the right side
* Add curve display * Add curve display
Misc: Misc:

View file

@ -770,7 +770,7 @@ void T_SyncViewImpl_::computeMetrics(
} }
const float unadjustedStartPixel{ totalPixels * startPos / units }; const float unadjustedStartPixel{ totalPixels * startPos / units };
if ( unadjustedStartPixel + innerWidth > totalPixels ) { if ( unadjustedStartPixel + innerWidth > totalPixels ) {
startPos = std::max( 0.f , totalPixels - innerWidth ); startPos = std::max( 0.f , units * ( totalPixels - innerWidth ) / totalPixels );
} }
startPixel = totalPixels * startPos / units; startPixel = totalPixels * startPos / units;
startBar = [=](){ startBar = [=](){