Skip to content

Commit

Permalink
Zoom instead.
Browse files Browse the repository at this point in the history
Seems more consistent with Shift-drag.
  • Loading branch information
jrfonseca committed May 12, 2013
1 parent 35efe21 commit 6915ae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xdot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,8 @@ def zoom_to_area(self, x1, y1, x2, y2):
width = abs(x1 - x2)
height = abs(y1 - y2)
if width == 0 and height == 0:
self.zoom_ratio /= 2
self.zoom_ratio *= self.ZOOM_INCREMENT
else:
# TODO: handle case of width or hight == 0
self.zoom_ratio = min(
float(rect.width)/float(width),
float(rect.height)/float(height)
Expand Down

0 comments on commit 6915ae9

Please sign in to comment.