mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[App/zoom_parameter_controller] Add comment
See : https://github.com/numworks/epsilon/pull/1548#discussion_r425708055
This commit is contained in:
committed by
EmilieNumworks
parent
f1209bcf76
commit
67fc7502e2
@@ -58,6 +58,11 @@ int ZoomParameterController::ContentView::numberOfSubviews() const {
|
||||
|
||||
View * ZoomParameterController::ContentView::subviewAtIndex(int index) {
|
||||
assert(index >= 0 && index < 2);
|
||||
/* The order of subview is important here :
|
||||
* If we redraw the curveView before the legendView, that can have some display issue, when exiting sleep mode, which
|
||||
can be visible, if the redraw of curveView is long (with complicated curve), so we prefer to have legendView
|
||||
at first subview.
|
||||
*/
|
||||
if (index == 0) {
|
||||
return &m_legendView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user