# HG changeset patch # User Drew Perttula # Date 1401779590 0 # Node ID 470cc80f53847a90975d1a9aba54eea4efc2321c # Parent d14c82953b43657d8e917362e85aac9cbdfd9dd4 CC escape key puts time slider to the left side Ignore-this: 24d927b942ca403c47fcbe41972a5491 diff -r d14c82953b43 -r 470cc80f5384 light9/curvecalc/zoomcontrol.py --- a/light9/curvecalc/zoomcontrol.py Tue Jun 03 07:12:30 2014 +0000 +++ b/light9/curvecalc/zoomcontrol.py Tue Jun 03 07:13:10 2014 +0000 @@ -128,8 +128,10 @@ if t is None: t = self.lastTime vis_seconds = self.end - self.start - margin = vis_seconds * .1 - if t < self.start or t > (self.end - vis_seconds * .3): + # note that setting self.offset positions the time in the + # *middle*. + margin = vis_seconds * -.4 + if t < self.start or t > (self.end - vis_seconds * .6): self.offset = t - margin self.redrawzoom()