Scrubber auto-pauses when dragging from ended position.

This commit is contained in:
Nick Winter 2014-09-24 22:12:00 -07:00
parent 2aa274cb2d
commit 5e0b42068a

View file

@ -334,7 +334,7 @@ module.exports = class LevelPlaybackView extends CocoView
start: (event, ui) =>
return if @shouldIgnore()
@slideCount = 0
@wasPlaying = @playing
@wasPlaying = @playing and not $('#play-button').hasClass('ended')
Backbone.Mediator.publish 'level:set-playing', {playing: false}
Backbone.Mediator.publish 'audio-player:play-sound', trigger: 'playback-scrub-start', volume: 0.5