mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-26 17:27:57 +00:00
debug copy
This commit is contained in:
@@ -1156,12 +1156,12 @@ fun ChatLayout(
|
||||
val y = if (draggingDown) charY + gap
|
||||
else (charY - buttonSize.height - gap)
|
||||
val clampedX = x.coerceIn(0f, (manager.viewportWidth - buttonSize.width).coerceAtLeast(0f))
|
||||
SelectionCopyButton(
|
||||
modifier = Modifier
|
||||
.offset { IntOffset(clampedX.toInt(), y.toInt()) }
|
||||
.onSizeChanged { buttonSize = it },
|
||||
onCopy = { manager.onCopySelection?.invoke() }
|
||||
)
|
||||
// SelectionCopyButton(
|
||||
// modifier = Modifier
|
||||
// .offset { IntOffset(clampedX.toInt(), y.toInt()) }
|
||||
// .onSizeChanged { buttonSize = it },
|
||||
// onCopy = { manager.onCopySelection?.invoke() }
|
||||
// )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user