diff --git a/light9/web/timeline/timeline.coffee b/light9/web/timeline/timeline.coffee --- a/light9/web/timeline/timeline.coffee +++ b/light9/web/timeline/timeline.coffee @@ -112,7 +112,7 @@ coffeeElementSetup(class TimelineEditor '_onSong(playerSong, followPlayerSong)', '_onGraph(graph)', '_onSongDuration(songDuration, viewState)', - '_onSongTime(songTime, viewState)', + '_onSongTime(song, playerSong, songTime, viewState)', '_onSetAdjuster(setAdjuster)', ] constructor: -> @@ -157,7 +157,10 @@ coffeeElementSetup(class TimelineEditor @viewState.zoomedTimeY(@$.zoomed.$.time.offsetTop) @viewState.zoomedTimeH(@$.zoomed.$.time.offsetHeight) - _onSongTime: (t) -> + _onSongTime: (song, playerSong, t) -> + if song != playerSong + @viewState.cursor.t(0) + return @viewState.cursor.t(t) _onSongDuration: (d) ->