mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/shared] In graph, enable cursor to be at infinity without moving range
Change-Id: I6de1593a3017d28c0187a0a3ab3f19b7cbbaa667
This commit is contained in:
@@ -23,8 +23,8 @@ void CurveViewCursor::moveTo(float x, float y) {
|
||||
}
|
||||
|
||||
float CurveViewCursor::clipped(float x) {
|
||||
float clippedX = x > k_maxFloat ? k_maxFloat : x;
|
||||
clippedX = clippedX < - k_maxFloat ? -k_maxFloat : clippedX;
|
||||
float clippedX = x > k_maxFloat ? INFINITY : x;
|
||||
clippedX = clippedX < - k_maxFloat ? -INFINITY : clippedX;
|
||||
return clippedX;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user