From 14096da20ad1a0949c920d8ad7a4b4bf724225f8 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Fri, 11 Jan 2019 09:00:35 +0100 Subject: [PATCH] Fixed #1577 --- src/slic3r/GUI/wxExtensions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index cec19427f..096db2c5f 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -2092,6 +2092,8 @@ void PrusaDoubleSlider::OnMotion(wxMouseEvent& event) void PrusaDoubleSlider::OnLeftUp(wxMouseEvent& event) { + if (!HasCapture()) + return; this->ReleaseMouse(); m_is_left_down = false; Refresh(); @@ -2230,6 +2232,8 @@ void PrusaDoubleSlider::OnRightDown(wxMouseEvent& event) void PrusaDoubleSlider::OnRightUp(wxMouseEvent& event) { + if (!HasCapture()) + return; this->ReleaseMouse(); m_is_right_down = m_is_one_layer = false;