[apps/shared/curve_view] Clarify coordinates' conventions

This commit is contained in:
Ruben Dashyan
2019-07-12 12:02:22 +02:00
committed by EmilieNumworks
parent 07474caf6c
commit 585b77c38f
4 changed files with 52 additions and 34 deletions

View File

@@ -276,7 +276,7 @@ int InteractiveCurveViewController::closestCurveIndexVertically(bool goingUp, in
}
float InteractiveCurveViewController::cursorBottomMarginRatio() {
return (curveView()->cursorView()->minimalSizeForOptimalDisplay().height()/2+estimatedBannerHeight())/k_viewHeight;
return (curveView()->cursorView()->minimalSizeForOptimalDisplay().height()/2+estimatedBannerHeight())/(k_viewHeight-1);
}
float InteractiveCurveViewController::estimatedBannerHeight() const {