Skip to content

Commit e327a98

Browse files
committed
initviz: use finer scale steps for smoother zoom control
Change timeline expansion/contraction zoom factor from 1.5× to 1.1× for smoother, more precise control when adjusting the time scale. Adapted from xrmx/bootchart#42 (PATCH 004/182) Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
1 parent a094708 commit e327a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

initviz/gui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ def set_xscale(self, xscale):
171171
self.zoom_to_best_fit(allocation)
172172

173173
def on_expand(self, action):
174-
self.set_xscale (self.xscale * 1.5)
174+
self.set_xscale (self.xscale * 1.1)
175175

176176
def on_contract(self, action):
177-
self.set_xscale (self.xscale / 1.5)
177+
self.set_xscale (self.xscale / 1.1)
178178

179179
def on_zoom_in(self, action):
180180
self.zoom_image(self.zoom_ratio * self.ZOOM_INCREMENT)

0 commit comments

Comments
 (0)