Address issue #1753, fix FloatCanvas GUIMode GUIZoomIn and GUIZoomOut behavior

This commit is contained in:
DKWoods
2020-07-27 16:16:20 -05:00
parent 33fa9afdcc
commit b615941ee1

View File

@@ -374,7 +374,7 @@ class GUIZoomIn(ZoomWithMouseWheel, GUIBase):
dc.DrawRectangle(*self.PrevRBBox)
def OnRightDown(self, event):
self.Canvas.Zoom(1/1.5, event.GetPosition(), centerCoords="pixel")
self.Canvas.Zoom(1/1.5, event.GetPosition(), centerCoords="Pixel")
class GUIZoomOut(ZoomWithMouseWheel, GUIBase):
@@ -386,10 +386,10 @@ class GUIZoomOut(ZoomWithMouseWheel, GUIBase):
self.Cursor = self.Cursors.MagMinusCursor
def OnLeftDown(self, event):
self.Canvas.Zoom(1/1.5, event.GetPosition(), centerCoords="pixel")
self.Canvas.Zoom(1/1.5, event.GetPosition(), centerCoords="Pixel")
def OnRightDown(self, event):
self.Canvas.Zoom(1.5, event.GetPosition(), centerCoords="pixel")
self.Canvas.Zoom(1.5, event.GetPosition(), centerCoords="Pixel")
def OnMove(self, event):
# Always raise the Move event.