You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compose/foundation/foundation/src/uikitMain/kotlin/androidx/compose/foundation/text/modifiers/SelectionController.uikit.kt
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,8 @@ internal actual fun SelectionRegistrar.makeSelectionModifier(
175
175
176
176
overridefunonStart(
177
177
downPosition:Offset,
178
-
adjustment:SelectionAdjustment
178
+
adjustment:SelectionAdjustment,
179
+
clickCount:Int,
179
180
): Boolean {
180
181
layoutCoordinates()?.let {
181
182
if (!it.isAttached) returnfalse
@@ -324,7 +325,7 @@ private suspend fun AwaitPointerEventScope.mouseSelection(
324
325
else->SelectionAdjustment.Paragraph
325
326
}
326
327
327
-
val started = observer.onStart(downChange.position, selectionAdjustment)
328
+
val started = observer.onStart(downChange.position, selectionAdjustment, clicksCounter.clicks)
328
329
if (started) {
329
330
val shouldConsumeUp = drag(downChange.id) {
330
331
if (observer.onDrag(it.position, selectionAdjustment)) {
0 commit comments