Skip to content

Commit

Permalink
fix: fix ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
PouriaAmini committed Jul 23, 2024
1 parent 43bf5f3 commit 42d2ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Amplitude/Plugins/iOS/UIKitUserInteractions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ extension UIApplication {

if let recentEvent = UIApplication.coalescedEvents.last {
if recentEvent.controlIdentifier == controlIdentifier {
recentEvent.terminated = control.isActionTerminal(action, to: target)
recentEvent.changeAction(action, with: controlEvent)
recentEvent.terminated = control.isActionTerminal(action, to: target)
} else {
recentEvent.terminated = true
let newEvent = CoalescedEvent(control.eventData, for: action, with: controlEvent, from: control)
Expand Down

0 comments on commit 42d2ada

Please sign in to comment.