Changeset - a6045f11198d
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 6 years ago 2019-06-10 23:22:06
drewp@bigasterisk.com
don't show a misleading TL cursor when we're viewing a song that's not the playing one
Ignore-this: 33928b4331aa09f2191b6d45e4e163a
1 file changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -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) ->
0 comments (0 inline, 0 general)