소스 검색

fix(speaker-levels): convert calculation from string to float (#3870)

j8
virtuacoplenny 6 년 전
부모
커밋
f77e1dc591
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      modules/UI/audio_levels/AudioLevels.js

+ 2
- 1
modules/UI/audio_levels/AudioLevels.js 파일 보기

@@ -87,7 +87,8 @@ const AudioLevels = {
87 87
 
88 88
         // External circle audio level.
89 89
         const ext = {
90
-            level: ((int.level * scale * level) + int.level).toFixed(0),
90
+            level: parseFloat(
91
+                ((int.level * scale * level) + int.level).toFixed(0)),
91 92
             color: interfaceConfig.AUDIO_LEVEL_SECONDARY_COLOR
92 93
         };
93 94
 

Loading…
취소
저장