fix timebar scrubber notify wrong start position

This commit is contained in:
cdotchen 2018-04-24 22:05:45 +08:00
parent d4eb2e5b85
commit 693fe2841d

View file

@ -408,8 +408,8 @@ public class DefaultTimeBar extends View implements TimeBar {
switch (event.getAction()) {
case MotionEvent.ACTION_DOWN:
if (isInSeekBar(x, y)) {
startScrubbing();
positionScrubber(x);
startScrubbing();
scrubPosition = getScrubberPosition();
update();
invalidate();