Fix back button on song select

This commit is contained in:
LoveEevee 2018-10-13 01:48:53 +03:00
parent 4845ec106b
commit faff06bbbd

View File

@ -179,7 +179,9 @@ class Sound{
stop(time, absolute){ stop(time, absolute){
time = this.convertTime(time, absolute) time = this.convertTime(time, absolute)
this.sources.forEach(source => { this.sources.forEach(source => {
try{
source.stop(Math.max(source.startTime, time)) source.stop(Math.max(source.startTime, time))
}catch(e){}
}) })
this.setTimeouts(time).then(() => { this.setTimeouts(time).then(() => {
if(this.loop){ if(this.loop){