desktop: fix scrolling in some cases (#2888)
This commit is contained in:
parent
b8f289039a
commit
e2dfc2071f
@ -25,6 +25,10 @@ import java.io.File
|
|||||||
val simplexWindowState = SimplexWindowState()
|
val simplexWindowState = SimplexWindowState()
|
||||||
|
|
||||||
fun showApp() = application {
|
fun showApp() = application {
|
||||||
|
// TODO: remove after update to compose 1.5.0+
|
||||||
|
// See: https://github.com/JetBrains/compose-multiplatform/issues/3366#issuecomment-1643799976
|
||||||
|
System.setProperty("compose.scrolling.smooth.enabled", "false")
|
||||||
|
|
||||||
// For some reason on Linux actual width will be 10.dp less after specifying it here. If we specify 1366,
|
// For some reason on Linux actual width will be 10.dp less after specifying it here. If we specify 1366,
|
||||||
// it will show 1356. But after that we can still update it to 1366 by changing window state. Just making it +10 now here
|
// it will show 1356. But after that we can still update it to 1366 by changing window state. Just making it +10 now here
|
||||||
val width = if (desktopPlatform.isLinux()) 1376.dp else 1366.dp
|
val width = if (desktopPlatform.isLinux()) 1376.dp else 1366.dp
|
||||||
|
Loading…
Reference in New Issue
Block a user