Skip to content

Commit

Permalink
fix: Use clamp correctly in progress control (#6625)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Jun 19, 2020
1 parent 6e7cc75 commit cad9114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/control-bar/progress-control/progress-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ProgressControl extends Component {
// The default skin has a gap on either side of the `SeekBar`. This means
// that it's possible to trigger this behavior outside the boundaries of
// the `SeekBar`. This ensures we stay within it at all times.
seekBarPoint = clamp(0, 1, seekBarPoint);
seekBarPoint = clamp(seekBarPoint, 0, 1);

if (mouseTimeDisplay) {
mouseTimeDisplay.update(seekBarRect, seekBarPoint);
Expand Down

0 comments on commit cad9114

Please sign in to comment.