Skip to content

Commit

Permalink
[SHARED] Fix issue with DraggableBox edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
kamgurgul committed Dec 23, 2024
1 parent 484ec75 commit e77abf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/AndroidVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ object AndroidVersions {
const val COMPILE_SDK = 35

private const val VERSION_MAJOR = 6
private const val VERSION_MINOR = 2
private const val VERSION_PATCH = 0
private const val VERSION_MINOR = 1
private const val VERSION_PATCH = 1

const val VERSION_CODE = VERSION_MAJOR * 10000 + VERSION_MINOR * 100 + VERSION_PATCH
const val VERSION_NAME = "$VERSION_MAJOR.$VERSION_MINOR.$VERSION_PATCH"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private fun calculateElevation(
actionRowOffset: Float,
maxElevation: Dp = 8.dp
): Dp {
return if (offset.absoluteValue == 0f) {
return if (offset.isNaN() || actionRowOffset.isNaN() || offset.absoluteValue == 0f) {
0.dp
} else {
(offset.absoluteValue * 100f / actionRowOffset.absoluteValue) / 100f * maxElevation
Expand Down

0 comments on commit e77abf8

Please sign in to comment.