Fix DefaultTimeBar ignores touch transformations #7303

This commit is contained in:
Artem Chepurnoy 2020-04-29 14:55:59 +03:00
parent 2e9ed51503
commit 088938c9ab

View file

@ -798,10 +798,9 @@ public class DefaultTimeBar extends View implements TimeBar {
} }
private Point resolveRelativeTouchPosition(MotionEvent motionEvent) { private Point resolveRelativeTouchPosition(MotionEvent motionEvent) {
getLocationOnScreen(locationOnScreen);
touchPosition.set( touchPosition.set(
((int) motionEvent.getRawX()) - locationOnScreen[0], (int) motionEvent.getX(),
((int) motionEvent.getRawY()) - locationOnScreen[1]); (int) motionEvent.getY());
return touchPosition; return touchPosition;
} }