Skip to content

Commit

Permalink
Fixed header drag in log being too fast in hight density displays
Browse files Browse the repository at this point in the history
  • Loading branch information
JetpackDuba committed Jan 9, 2024
1 parent 5a4f67b commit de64d43
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 49 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/kotlin/com/jetpackduba/gitnuro/ui/log/Log.kt
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ fun GraphHeader(
SimpleDividerLog(
modifier = Modifier.draggable(
rememberDraggableState {
onPaddingChange(it * density) // Multiply by density for screens with scaling > 1
onPaddingChange(it / density) // Divide by density for screens with scaling > 1
}, Orientation.Horizontal
),
)
Expand Down

0 comments on commit de64d43

Please sign in to comment.