Fixed log splitter over-dragging when having density higher than 100%

This commit is contained in:
Abdelilah El Aissaoui 2022-11-15 14:08:04 +01:00
parent 4bad3a941c
commit f8d3c71812

View file

@ -199,7 +199,7 @@ fun Log(
DividerLog(
modifier = Modifier.draggable(
rememberDraggableState {
graphPadding += it * density
graphPadding += it / density
logViewModel.graphPadding = graphPadding
}, Orientation.Horizontal
),