diff --git a/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt b/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt
index e18b9d169a8c4fc9e929d426d9de453f275a1d3a..742448af70b10d8d0f77e5c2b47b04fb500a3310 100644
--- a/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt
+++ b/briar-desktop/src/main/kotlin/org/briarproject/briar/desktop/ui/InfoDrawer.kt
@@ -49,7 +49,6 @@ import androidx.compose.ui.unit.Dp
 import androidx.compose.ui.unit.IntOffset
 import androidx.compose.ui.unit.dp
 import org.briarproject.briar.desktop.ui.Constants.COLUMN_WIDTH
-import kotlin.math.roundToInt
 
 /**
  * State of the [InfoDrawer] composable.
@@ -154,7 +153,7 @@ fun InfoDrawer(
                 .fillMaxHeight()
                 .requiredWidth(COLUMN_WIDTH)
                 .align(Alignment.CenterEnd)
-                .offset { IntOffset(animatedOffset.value.roundToInt(), 0) },
+                .offset { IntOffset(animatedOffset.roundToPx(), 0) },
             shape = drawerShape,
             color = drawerBackgroundColor,
             contentColor = drawerContentColor,