mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Fix initial audio volume not corresponding to what's displayed
Port 755e8c76ab
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
This commit is contained in:
parent
45fbba2742
commit
65a9b788fc
@ -125,6 +125,7 @@ class Audio extends React.PureComponent {
|
|||||||
this.wavesurfer.createPeakCache();
|
this.wavesurfer.createPeakCache();
|
||||||
this.wavesurfer.load(this.props.src);
|
this.wavesurfer.load(this.props.src);
|
||||||
this.wavesurfer.toggleInteraction();
|
this.wavesurfer.toggleInteraction();
|
||||||
|
this.wavesurfer.setVolume(this.state.volume);
|
||||||
this.loaded = true;
|
this.loaded = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user