changeset 1488:df6bfc7e5584

disable origin dragger for a bit of performance, and it should be gone anyway since selecting all other pts should be super easy Ignore-this: dd102507c948cbf2cf3dada2286da968
author drewp@bigasterisk.com
date Mon, 13 Jun 2016 08:39:36 +0000
parents 8fab8267b88e
children 31612b323436
files light9/web/timeline/timeline.coffee
diffstat 1 files changed, 16 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/light9/web/timeline/timeline.coffee	Mon Jun 13 08:39:21 2016 +0000
+++ b/light9/web/timeline/timeline.coffee	Mon Jun 13 08:39:36 2016 +0000
@@ -445,21 +445,22 @@
     
   makeCurveAdjusters: (curveWidth, yForV, worldPts) ->
     U = (x) -> @graph.Uri(x)
-    
-    @adjusterIds[@uri+'/offset'] = true
-    @setAdjuster(@uri+'/offset', => new AdjustableFloatObject({
-      graph: @graph
-      subj: @uri
-      pred: U(':originTime')
-      ctx: U(@song)
-      getDisplayValue: (v, dv) => "o=#{dv}"
-      getTargetPosForValue: (value) =>
-        # display bug: should be working from pt[0].t, not from origin
-        $V([@zoomInX(value + curveWidth() / 2), yForV(.5)])
-      getValueForPos: (pos) =>
-        @zoomInX.invert(pos.e(1)) - curveWidth() / 2
-      getSuggestedTargetOffset: () => $V([-10, 0])
-    }))
+
+    if 0
+      @adjusterIds[@uri+'/offset'] = true
+      @setAdjuster(@uri+'/offset', => new AdjustableFloatObject({
+        graph: @graph
+        subj: @uri
+        pred: U(':originTime')
+        ctx: U(@song)
+        getDisplayValue: (v, dv) => "o=#{dv}"
+        getTargetPosForValue: (value) =>
+          # display bug: should be working from pt[0].t, not from origin
+          $V([@zoomInX(value + curveWidth() / 2), yForV(.5)])
+        getValueForPos: (pos) =>
+          @zoomInX.invert(pos.e(1)) - curveWidth() / 2
+        getSuggestedTargetOffset: () => $V([-10, 0])
+      }))
 
     for pointNum in [0, 1, 2, 3]
       do (pointNum) =>