-
-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache averages in PointerTracker (#2212)
## Description This PR adds caching average coordinates in `PointerTracker`. Some handlers (like `pan`) send average values in native event. The problem is, that these events are being sent after pointers are removed from tracker. This means, that tracker may return NaN as averege, when received event was `pointerup`. In that case, cached value should be returned. ## Test plan Tested on example app
- Loading branch information
Showing
1 changed file
with
23 additions
and
2 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