Update thumbTrackSizePercent calculation for readability

Change-Id: I7ef067a950b4b5911b8c2e6a8c1f72c3e95d938d
pull/1837/head
Yuya 2 years ago
parent cc6677872d
commit 907be7d667

@ -96,7 +96,7 @@ class ScrollbarState {
* Returns the max distance the thumb can travel as a percentage of total track size * Returns the max distance the thumb can travel as a percentage of total track size
*/ */
val thumbTrackSizePercent val thumbTrackSizePercent
get() = 1f - unpackFloat1(packedValue) get() = 1f - thumbSizePercent
} }
/** /**

Loading…
Cancel
Save