Changeset - e4c65310c050
[Not reviewed]
default
0 1 0
Drew Perttula - 9 years ago 2016-06-04 06:08:25
drewp@bigasterisk.com
zoom adjs center in audio section
Ignore-this: b6f54cb512d745e1f5c061294e9c13fe
1 file changed with 7 insertions and 6 deletions:
0 comments (0 inline, 0 general)
light9/web/timeline.coffee
Show inline comments
 
@@ -178,6 +178,7 @@ Polymer
 
      ]
 

	
 
  makeZoomAdjs: ->
 
    yMid = @$.audio.offsetTop + @$.audio.offsetHeight / 2
 
    dur = @viewState.zoomSpec.duration
 
    valForPos = (pos) =>
 
        x = pos.e(1)
 
@@ -186,9 +187,9 @@ Polymer
 
      observable: @viewState.zoomSpec.t1,
 
      valueLow: 0
 
      valueHigh: dur
 
      targetLow: $V([0, 30])  # y = @$.audio.offsetTop + @$.audio.offsetHeight / 2]
 
      targetHigh: $V([@offsetWidth, 30])
 
      getSuggestedTargetOffset: () => $V([-30, 0])
 
      targetLow: $V([0, yMid])
 
      targetHigh: $V([@offsetWidth, yMid])
 
      getSuggestedTargetOffset: () => $V([-50, 0])
 
      getValueForPos: valForPos
 
    })
 

	
 
@@ -196,9 +197,9 @@ Polymer
 
      observable: @viewState.zoomSpec.t2,
 
      valueLow: 0
 
      valueHigh: dur
 
      targetLow: $V([0, 30])  # y = @$.audio.offsetTop + @$.audio.offsetHeight / 2]
 
      targetHigh: $V([@offsetWidth, 30])
 
      getSuggestedTargetOffset: () => $V([30, 0])
 
      targetLow: $V([0, yMid])
 
      targetHigh: $V([@offsetWidth, yMid])
 
      getSuggestedTargetOffset: () => $V([50, 0])
 
      getValueForPos: valForPos
 
    })
 

	
0 comments (0 inline, 0 general)