mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-29 03:29:58 +02:00
[apps/shared] Fix bug in go to parameter controllers
Change-Id: I196378c4921583af42dc4a2e64e3a6c32038f9d1
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user