File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/core/src/components/Progress Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ export const CircularProgress: React.FC<
79
79
}
80
80
} , [ startPosition ] ) ;
81
81
82
- const currentFillPercentage = value / ( maximumValue + minimumValue ) ;
82
+ const currentFillPercentage =
83
+ ( value - minimumValue ) / ( maximumValue - minimumValue ) ;
83
84
const currentAngle = useSharedValue ( startAngle ) ;
84
85
85
86
const progressPathAnimatedProps = useAnimatedProps < PathProps > ( ( ) => {
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ export const LinearProgress: React.FC<ValueProgressProps> = ({
57
57
const progressLineWidth = svgContainerWidth - thicknessOffset ;
58
58
const trackProgressLineWidth = svgContainerWidth - thicknessOffset ;
59
59
60
- const currentFillPercentage = value / ( maximumValue + minimumValue ) ;
60
+ const currentFillPercentage =
61
+ ( value - minimumValue ) / ( maximumValue - minimumValue ) ;
61
62
const currentProgressLineWidth = useSharedValue ( 0 ) ;
62
63
63
64
const progressLineAnimatedProps = useAnimatedProps < LineProps > ( ( ) => {
You can’t perform that action at this time.
0 commit comments