mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 17:17:39 +00:00
debug copy
This commit is contained in:
1 parent
ce36adc4b1
commit
fe9828857a
1 file changed
+6
-6
+6
-6
@@ -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