瀏覽代碼

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

master
virtuacoplenny 7 年之前
父節點
當前提交
f77e1dc591
沒有連結到貢獻者的電子郵件帳戶。
共有 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…
取消
儲存