mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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) {
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue