-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* ♻️ [RUMF-1296] simplify a bit how we compute input user activity This commit will help implementing click actions triggered by pointerup behind a FF. * ♻️✅ simplify trackClickActions tests * 🐛 [RUMF-1296] ignore non-primary pointer events In 'listenActionEvents', we expect that a 'click' event is preceded by a single 'pointerdown' event. It turns out this is not always the case on multitouch devices. This issue would be amplified when listening to 'pointerup' events. Let's just focus on the 'primary' pointer events. This will ignore secondary touches until we implement proper support for them (if ever). * ⚗🐛 [RUMF-1296] use pointerup to trigger click actions This slightly change the action beginning, but takes any activity produced by 'pointerup' 'mouseup' 'touchend' events into account. If those actions don't produce any activity, the action start is likely to be the same as before, since 'pointerup/mouseup/touchend' should be triggered very close to the 'click' event. * 🔊⚗ [RUMF-1296] record the delay between pointerup and click * 🚩 rename feature flag * 🐛 restore existing behavior for dead clicks * 👌 rename onActionStart to onStartEvent
- Loading branch information
1 parent
f349b60
commit 757ffbf
Showing
8 changed files
with
276 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ describe('actionCollection', () => { | |
x: 1, | ||
y: 2, | ||
}, | ||
pointer_up_delay: undefined, | ||
}, | ||
}, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.