Commit 13592b86 authored by Guillaume Seguin's avatar Guillaume Seguin

Delay zooming on resize a little bit in gviz to prevent hogging CPU.

parent 82b95c67
......@@ -207,7 +207,7 @@ class gviz(wx.Panel):
self.update_basescale()
newside = max(1.0, min(self.size))
zoomratio = float(newside) / oldside
wx.CallAfter(self.zoom, 0, 0, zoomratio)
wx.CallLater(500, self.zoom, 0, 0, zoomratio)
def zoom(self, x, y, factor):
if x == -1 and y == -1:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment