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):
def handle_wheel(self, event):
delta = event.GetWheelRotation()
factor = 1.05
if event.ControlDown():
factor = 1.02
if hasattr(self.parent, "model") and event.ShiftDown():
if not self.parent.model:
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