# HG changeset patch # User drewp@bigasterisk.com # Date 2019-06-10 23:22:06 # Node ID a6045f11198d6aa1d75038c14144ae912231bede # Parent 5b157494a7412051f38c59a6614a7e77caf46dd5 don't show a misleading TL cursor when we're viewing a song that's not the playing one Ignore-this: 33928b4331aa09f2191b6d45e4e163a 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) ->