Graph separator takes in consideration screen density

This commit is contained in:
Abdelilah El Aissaoui 2022-07-10 16:21:25 +02:00
parent e28033f951
commit 1221085374

View File

@ -579,10 +579,12 @@ fun GraphHeader(
maxLines = 1,
)
val density = LocalDensity.current.density
SimpleDividerLog(
modifier = Modifier.draggable(
rememberDraggableState {
weightMod.value += it
weightMod.value += it * density // Multiply by density for screens with scaling > 1
}, Orientation.Horizontal
),
)