Changeset - 470cc80f5384
[Not reviewed]
default
0 1 0
Drew Perttula - 11 years ago 2014-06-03 07:13:10
drewp@bigasterisk.com
CC escape key puts time slider to the left side
Ignore-this: 24d927b942ca403c47fcbe41972a5491
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
light9/curvecalc/zoomcontrol.py
Show inline comments
 
@@ -128,8 +128,10 @@ class ZoomControl(object):
 
        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()
0 comments (0 inline, 0 general)