mirror of
https://github.com/samsonjs/media.git
synced 2026-04-16 13:05:46 +00:00
Fix DefaultTimeBar ignores touch transformations #7303
This commit is contained in:
parent
2e9ed51503
commit
088938c9ab
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue