Skip to content

Commit b8ec041

Browse files
committed
fix(android): pan gesture velocity fix
1 parent d7ad3ad commit b8ec041

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/gesturehandler/platforms/android/java/com/swmansion/gesturehandler/PanGestureHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ protected void onHandle(MotionEvent event) {
235235
mStartY = mLastY;
236236
mOffsetX = 0;
237237
mOffsetY = 0;
238+
mLastVelocityX = 0;
239+
mLastVelocityY = 0;
238240
mVelocityTracker = VelocityTracker.obtain();
239241
addVelocityMovement(mVelocityTracker, event);
240242
begin();

0 commit comments

Comments
 (0)