Skip to content

Commit 16966e7

Browse files
committed
trivial cleanup
1 parent 793b3d4 commit 16966e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/handleInteractions.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ internal fun Modifier.handleInteractions(
2727
if (!enabled) continue
2828

2929
if (event.type == PointerEventType.Press) {
30-
val position = event.changes.first().position
30+
val eventChange = event.changes.first()
31+
val position = eventChange.position
3132

32-
when (event.changes.first().type) {
33+
when (eventChange.type) {
3334
PointerType.Touch -> {
3435
onInteraction?.invoke(
3536
InteractionType.Tap,
36-
event.changes.first().position
37+
eventChange.position
3738
)
3839
}
3940

0 commit comments

Comments
 (0)