Skip to content

Commit

Permalink
Fix DefaultTimeBar ignores touch transformations google#7303
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Apr 29, 2020
1 parent 2e9ed51 commit 088938c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -798,10 +798,9 @@ private void positionScrubber(float xPosition) {
}

private Point resolveRelativeTouchPosition(MotionEvent motionEvent) {
getLocationOnScreen(locationOnScreen);
touchPosition.set(
((int) motionEvent.getRawX()) - locationOnScreen[0],
((int) motionEvent.getRawY()) - locationOnScreen[1]);
(int) motionEvent.getX(),
(int) motionEvent.getY());
return touchPosition;
}

Expand Down

0 comments on commit 088938c

Please sign in to comment.