[apps/shared] Fix bug in go to parameter controllers

Change-Id: I196378c4921583af42dc4a2e64e3a6c32038f9d1
This commit is contained in:
Émilie Feral
2017-03-29 16:30:37 +02:00
parent ffd6e61328
commit e95ea50d3c
5 changed files with 12 additions and 11 deletions

View File

@@ -201,6 +201,10 @@ void InteractiveCurveViewRange::panToMakePointVisible(float x, float y, float to
}
}
bool InteractiveCurveViewRange::isCursorVisible() {
return m_cursor->x() >= m_xMin && m_cursor->x() <= m_xMax && m_cursor->y() >= m_yMin && m_cursor->y() <= m_yMax;
}
float InteractiveCurveViewRange::clipped(float x, bool isMax) {
float max = isMax ? k_upperMaxFloat : k_lowerMaxFloat;
float min = isMax ? -k_lowerMaxFloat : -k_upperMaxFloat;