Skip to content

Commit

Permalink
Fix for unwanted behavior for some screen resolutions.
Browse files Browse the repository at this point in the history
  • Loading branch information
AwakeMobileApps committed Jul 9, 2022
1 parent 4706c15 commit e1b4fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ open class DefaultItemTransformer
currentRatio = max(0f, headerBottom / lm.workBottom.toFloat())
currentRatioWork = max(0f, (headerBottom - lm.workTop) / lm.workHeight.toFloat())
currentRatioTopHalf = max(0f, 1 - (ratioBottomHalf - min(max(currentRatio, ratioTopHalf), ratioBottomHalf)) / (ratioBottomHalf - ratioTopHalf))
currentRatioBottomHalf = max(0f, (currentRatio - ratioBottomHalf) / ratioBottomHalf)
currentRatioBottomHalf = max(0f, min(1f,(currentRatio - ratioBottomHalf) / ratioBottomHalf))
}

private fun updatePoints(lm: HeaderLayoutManager, header: HeaderLayout, up: Boolean) {
Expand Down

0 comments on commit e1b4fd3

Please sign in to comment.