# HG changeset patch # User drewp@bigasterisk.com # Date 1465807176 0 # Node ID df6bfc7e55849d836245f723d56e2d47255a2332 # Parent 8fab8267b88e79064f72e69898c5a38fe69f9e32 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 diff -r 8fab8267b88e -r df6bfc7e5584 light9/web/timeline/timeline.coffee --- 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) =>