Skip to content

Commit

Permalink
Merge pull request #27 from initig/fix_thumb_position
Browse files Browse the repository at this point in the history
fix thumb position when total changed
  • Loading branch information
suragch authored Nov 14, 2021
2 parents 2cbad39 + 78c89be commit d2c3349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/audio_video_progress_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,9 @@ class _RenderProgressBar extends RenderBox {
_clearLabelCache();
}
_total = value;
if (!_userIsDraggingThumb) {
_thumbValue = _proportionOfTotal(progress);
}
markNeedsPaint();
}

Expand Down

0 comments on commit d2c3349

Please sign in to comment.