From 6ce686aff84a438caab1a52d276483a4586b8643 Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Tue, 28 Aug 2018 09:31:23 +0200 Subject: [PATCH] Fixed 3D scene mouse capture --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 8793bcf6f..b9d8a1011 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -3157,7 +3157,8 @@ void GLCanvas3D::on_mouse(wxMouseEvent& evt) } else if (evt.Dragging() && m_gizmos.is_dragging()) { - m_canvas->CaptureMouse(); + if (!m_canvas->HasCapture()) + m_canvas->CaptureMouse(); m_mouse.dragging = true; m_gizmos.update(mouse_ray(pos));