We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 051c53c + df757d0 commit e3c1af6Copy full SHA for e3c1af6
src/core/vlite.ts
@@ -334,7 +334,7 @@ class Vlitejs {
334
increaseVolume() {
335
this.player.isMuted && this.player.unMute()
336
this.player.getVolume().then((volume: number) => {
337
- this.player.setVolume(Math.min(volume + this.options.volumeStep, 1))
+ this.player.setVolume(Math.min(Math.round((volume + this.options.volumeStep) * 10) / 10, 1))
338
})
339
}
340
@@ -343,7 +343,7 @@ class Vlitejs {
343
*/
344
decreaseVolume() {
345
346
- this.player.setVolume(Math.max(volume - this.options.volumeStep, 0))
+ this.player.setVolume(Math.max(Math.round((volume - this.options.volumeStep) * 10) / 10, 0))
347
348
349
0 commit comments