Changeset - cd3e3f50096a
[Not reviewed]
default
0 1 0
Drew Perttula - 8 years ago 2017-05-25 04:09:51
drewp@bigasterisk.com
#novidref to quiet net requests from timeline
Ignore-this: a2ce3fd04578d4a1f2c3e4614146860a
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline/timeline.coffee
Show inline comments
 
@@ -139,13 +139,14 @@ Polymer
 
          ev = ev.touches[0]
 

	
 
        @root = @getBoundingClientRect()
 
        @viewState.mouse.pos($V([ev.pageX - @root.left, ev.pageY - @root.top]))
 

	
 
        @$.cursorCanvas.setMouse(@viewState.mouse.pos())
 
        @sendMouseToVidref()
 
        # should be controlled by a checkbox next to follow-player-song-choice
 
        @sendMouseToVidref() unless window.location.hash.match(/novidref/)
 

	
 
  sendMouseToVidref: ->
 
    now = Date.now()
 
    if (!@$.vidrefLastSent? || @$.vidrefLastSent < now - 200) && !@songPlaying
 
      @$.vidrefTime.body = {t: @latestMouseTime(), source: 'timeline'}
 
      @$.vidrefTime.generateRequest()
0 comments (0 inline, 0 general)