From 72d85261fba98303c508d93eab177f45f1e020e5 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 6 Feb 2019 08:44:06 +0100 Subject: [PATCH] Fix of mouse wheel scrolling over the variable layer height bar with OSX Retina rendering. --- src/slic3r/GUI/GLCanvas3D.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 4473e4d75..6a089a4b1 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -5231,6 +5231,12 @@ void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt) if (evt.MiddleIsDown()) return; +#if ENABLE_RETINA_GL + const float scale = m_retina_helper->get_scale_factor(); + evt.SetX(evt.GetX() * scale); + evt.SetY(evt.GetY() * scale); +#endif + // Performs layers editing updates, if enabled if (is_layers_editing_enabled()) {