Skip to content

Commit f69a955

Browse files
committed
Core: Gauge - fix gague's update method
Fixes #3437
1 parent 0172de6 commit f69a955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/gauge/gauge-class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class Gauge extends Framework7Class {
207207
stroke: borderColor,
208208
'stroke-width': borderWidth,
209209
'stroke-dasharray': length / 2,
210-
'stroke-dashoffset': (length / 2) * (progress - 1),
210+
'stroke-dashoffset': (length / 2) * (1 + progress),
211211
fill: borderBgColor ? 'none' : (bgColor || 'none'),
212212
};
213213
Object.keys(backAttrs).forEach((attr) => {

0 commit comments

Comments
 (0)