software-mansion / react-native-gesture-handler

Declarative API exposing platform native touch and gesture system to React Native.
https://docs.swmansion.com/react-native-gesture-handler/
MIT License
6.13k stars 982 forks source link

Add `relativeCoords` average to `PointerTracker` #2939

Closed m-bert closed 5 months ago

m-bert commented 5 months ago

Description

This PR adds missing relativeCoords average in PointerTracker.

Test plan

Add console.log(this.tracker.getRelativeCoordsAverage()); in onPointerMove callback inside PanGestureHandler and check that logs contain average position.