mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-13 22:49:51 -04:00
Fixed issue with play button not turning into rewind.
This commit is contained in:
parent
fbf5f52228
commit
b6a53a83e7
1 changed files with 2 additions and 2 deletions
|
@ -265,9 +265,9 @@ module.exports = class PlaybackView extends View
|
|||
$('.scrubber .progress-bar', @$el).css('width', "#{progress*100}%")
|
||||
|
||||
updatePlayButton: (progress) ->
|
||||
if progress >= 1.0 and @lastProgress < 1.0
|
||||
if progress >= 0.99 and @lastProgress < 0.99
|
||||
$('#play-button').removeClass('playing').removeClass('paused').addClass('ended')
|
||||
if progress < 1.0 and @lastProgress >= 1.0
|
||||
if progress < 0.99 and @lastProgress >= 0.99
|
||||
b = $('#play-button').removeClass('ended')
|
||||
if @playing then b.addClass('playing') else b.addClass('paused')
|
||||
|
||||
|
|
Loading…
Reference in a new issue