mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-26 21:45:52 +00:00
condition
This commit is contained in:
+1
-1
@@ -1140,7 +1140,7 @@ fun ChatLayout(
|
||||
val manager = LocalSelectionManager.current
|
||||
val range = manager?.range
|
||||
if (manager != null && manager.selectionState == SelectionState.Selected && manager.onCopySelection != null && range != null) {
|
||||
val draggingDown = range.startIndex > range.endIndex
|
||||
val draggingDown = range.startIndex > range.endIndex || (range.startIndex == range.endIndex && range.startOffset < range.endOffset)
|
||||
val gap = with(LocalDensity.current) { 4.dp.toPx() }
|
||||
var buttonSize by remember { mutableStateOf(IntSize.Zero) }
|
||||
val ls = manager.listState?.value
|
||||
|
||||
Reference in New Issue
Block a user