Compare commits
2
Commits
dc73a71993
...
3deb764905
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3deb764905 | ||
|
|
da772bd326 |
@@ -214,7 +214,7 @@ fun HudConfirmButtons(
|
||||
fun ZoomPanBox(
|
||||
modifier: Modifier = Modifier,
|
||||
minScale: Float = 1f,
|
||||
maxScale: Float = 3f,
|
||||
maxScale: Float = 6f,
|
||||
content: @Composable () -> Unit,
|
||||
) {
|
||||
var scale by remember { mutableFloatStateOf(1f) }
|
||||
|
||||
@@ -379,7 +379,8 @@ fun CatanScreen(
|
||||
players(false)
|
||||
if (current.isCk) CatanBarbarians(current, style = style)
|
||||
promptRow()
|
||||
Box(Modifier.weight(1f).fillMaxWidth(), contentAlignment = Alignment.Center) {
|
||||
// Pinch to zoom and drag to pan, as in landscape: a wide Seafarers map is small at fit.
|
||||
ZoomPanBox(Modifier.weight(1f).fillMaxWidth()) {
|
||||
board(Modifier)
|
||||
}
|
||||
handAndActions()
|
||||
|
||||
Reference in New Issue
Block a user