Commit 5fc47966 authored by Guillaume Seguin's avatar Guillaume Seguin

Reduce zoom factor when doing control + mousewheel (gcview)

parent f1671ee2
...@@ -226,6 +226,8 @@ class GcodeViewPanel(wxGLPanel): ...@@ -226,6 +226,8 @@ class GcodeViewPanel(wxGLPanel):
def handle_wheel(self, event): def handle_wheel(self, event):
delta = event.GetWheelRotation() delta = event.GetWheelRotation()
factor = 1.05 factor = 1.05
if event.ControlDown():
factor = 1.02
if hasattr(self.parent, "model") and event.ShiftDown(): if hasattr(self.parent, "model") and event.ShiftDown():
if not self.parent.model: if not self.parent.model:
return return
......
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