Browse code

Zoom instead.

Seems more consistent with Shift-drag.

José Fonseca authored on 12/05/2013 12:49:39
Showing 1 changed files

  • xdot.py index 6a7ff86..af1accf 100755
... ...
@@ -1615,9 +1615,8 @@ class DotWidget(gtk.DrawingArea):
1615 1615
         width = abs(x1 - x2)
1616 1616
         height = abs(y1 - y2)
1617 1617
         if width == 0 and height == 0:
1618
-            self.zoom_ratio /= 2
1618
+            self.zoom_ratio *= self.ZOOM_INCREMENT
1619 1619
         else:
1620
-            # TODO: handle case of width or hight == 0
1621 1620
             self.zoom_ratio = min(
1622 1621
                 float(rect.width)/float(width),
1623 1622
                 float(rect.height)/float(height)