Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 fix frustration animation in session replay
Frustration records used to reference MouseInteraction/Click records. Since Click Actions are now generated based on mouseup events, we broke this reference. There is no MouseInteraction/PointerUp record that Frustration can reference. This commit is a quick fix. It changes how we are generating MouseInteraction/MouseUp records: instead of listening to mouseup DOM events, we now listen to pointerup events, allowing Frustration records to reference MouseInteraction/MouseUp records. This works on the player side without any modification. In the context of supporting Mobile Session Replay, we introduced `PointerInteraction` records used by the Mobile SDKs in place of `MouseInteraction`. In the future, it would be great to replace `MouseInteraction` by `PointerInteraction` in the Browser SDK so we have an uniform way to convey such interaction. This would cleanly solve the issue since we would have `PointerInteraction/Up` records that we could reference from `Frustration` records.
- Loading branch information