Graph separator takes in consideration screen density
This commit is contained in:
parent
e28033f951
commit
1221085374
@ -579,10 +579,12 @@ fun GraphHeader(
|
|||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val density = LocalDensity.current.density
|
||||||
|
|
||||||
SimpleDividerLog(
|
SimpleDividerLog(
|
||||||
modifier = Modifier.draggable(
|
modifier = Modifier.draggable(
|
||||||
rememberDraggableState {
|
rememberDraggableState {
|
||||||
weightMod.value += it
|
weightMod.value += it * density // Multiply by density for screens with scaling > 1
|
||||||
}, Orientation.Horizontal
|
}, Orientation.Horizontal
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user