INNER CODE UNIT · Java
directionAdjustment
robinhood/ticker · ticker/src/main/java/com/robinhood/ticker/TickerColumn.java:88
directionAdjustment = scrollDown ? 1 : -1;
// Save the currentBottomDelta as previousBottomDelta in case this call to setTargetChar
// interrupted a previously running animation. The deltas will then be used to compute
// offset so that the interruption feels smooth on the UI.
previousBottomDelta = currentBottomDelta;
currentBottomDelta = 0f;
}
char getCurrentChar() {
return currentChar;
}
char getTargetChar() {
return targetChar;
}
float getCurrentWidth() {