diff --git a/CHANGELOG.md b/CHANGELOG.md index 34bb1d3c66..318f1abd57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixes - Build visionOS project with static Sentry SDK (#4462) +- Capture all touches with session replay (#4477) ### Improvements diff --git a/Sources/Swift/Integrations/SessionReplay/SentrySessionReplay.swift b/Sources/Swift/Integrations/SessionReplay/SentrySessionReplay.swift index 3b8b60497b..c978454533 100644 --- a/Sources/Swift/Integrations/SessionReplay/SentrySessionReplay.swift +++ b/Sources/Swift/Integrations/SessionReplay/SentrySessionReplay.swift @@ -255,7 +255,7 @@ class SentrySessionReplay: NSObject { var events = convertBreadcrumbs(breadcrumbs: breadcrumbs, from: video.start, until: video.end) if let touchTracker = touchTracker { - events.append(contentsOf: touchTracker.replayEvents(from: video.start, until: video.end)) + events.append(contentsOf: touchTracker.replayEvents(from: videoSegmentStart ?? video.start, until: video.end)) touchTracker.flushFinishedEvents() }