We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 793b3d4 commit 16966e7Copy full SHA for 16966e7
richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/handleInteractions.kt
@@ -27,13 +27,14 @@ internal fun Modifier.handleInteractions(
27
if (!enabled) continue
28
29
if (event.type == PointerEventType.Press) {
30
- val position = event.changes.first().position
+ val eventChange = event.changes.first()
31
+ val position = eventChange.position
32
- when (event.changes.first().type) {
33
+ when (eventChange.type) {
34
PointerType.Touch -> {
35
onInteraction?.invoke(
36
InteractionType.Tap,
- event.changes.first().position
37
+ eventChange.position
38
)
39
}
40
0 commit comments