mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-04 08:50:14 +02:00
Address issue #1753, fix FloatCanvas GUIMode GUIZoomIn and GUIZoomOut behavior
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user