From 4b7a5a62bba631b477714089826a59441e621ef2 Mon Sep 17 00:00:00 2001 From: wuchang Date: Wed, 13 Apr 2022 21:51:58 +0800 Subject: [PATCH] fix:progress bar update error --- .../Common/Utils/SJProgressSlider/SJProgressSlider.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SJVideoPlayer/Common/Utils/SJProgressSlider/SJProgressSlider.m b/SJVideoPlayer/Common/Utils/SJProgressSlider/SJProgressSlider.m index 6beccc06b..a8a8a7f12 100644 --- a/SJVideoPlayer/Common/Utils/SJProgressSlider/SJProgressSlider.m +++ b/SJVideoPlayer/Common/Utils/SJProgressSlider/SJProgressSlider.m @@ -187,8 +187,8 @@ - (void)setValue:(CGFloat)value_new animated:(BOOL)animated { if ( isnan(value_new) ) return; if ( value_new == _value ) return; CGFloat value_old = _value; - if ( value_new < _minValue ) value_new = _minValue; - else if ( value_new > _maxValue ) value_new = _maxValue; +// if ( value_new < _minValue ) value_new = _minValue; +// else if ( value_new > _maxValue ) value_new = _maxValue; // if ( _showsStopNode ) { // CGFloat stop = _stopNodeLocation * _maxValue; // if ( value_new > stop ) value_new = stop;