Skip to content

Commit

Permalink
Fix: sync stored volume value with the value passed to the playback.
Browse files Browse the repository at this point in the history
Allow to use float numbers as volume values.
  • Loading branch information
RussCoder authored and towerz committed Dec 3, 2019
1 parent cdc5224 commit aff0661
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/container/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ export default class Container extends UIObject {
}

setVolume(value) {
this.volume = parseInt(value, 10)
this.trigger(Events.CONTAINER_VOLUME, value, this.name)
this.playback.volume(value)
this.volume = parseFloat(value)
this.trigger(Events.CONTAINER_VOLUME, this.volume, this.name)
this.playback.volume(this.volume)
}

fullscreen() {
Expand Down

0 comments on commit aff0661

Please sign in to comment.