Commit 088938c9 by Artem Chepurnoy

Fix DefaultTimeBar ignores touch transformations #7303

parent 2e9ed515
......@@ -798,10 +798,9 @@ public class DefaultTimeBar extends View implements TimeBar {
}
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment