Skip to content

Commit

Permalink
trivial cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Wavesonics committed Nov 29, 2024
1 parent 793b3d4 commit 16966e7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,14 @@ internal fun Modifier.handleInteractions(
if (!enabled) continue

if (event.type == PointerEventType.Press) {
val position = event.changes.first().position
val eventChange = event.changes.first()
val position = eventChange.position

when (event.changes.first().type) {
when (eventChange.type) {
PointerType.Touch -> {
onInteraction?.invoke(
InteractionType.Tap,
event.changes.first().position
eventChange.position
)
}

Expand Down

0 comments on commit 16966e7

Please sign in to comment.