changeset 1078:470cc80f5384

CC escape key puts time slider to the left side Ignore-this: 24d927b942ca403c47fcbe41972a5491
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 03 Jun 2014 07:13:10 +0000
parents d14c82953b43
children fce46850ed8c
files light9/curvecalc/zoomcontrol.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()