From 6122f630d4cb8debb28a232d1ee0290f9ba4ceee Mon Sep 17 00:00:00 2001 From: bubnikv Date: Sat, 4 Dec 2021 09:36:33 +0100 Subject: [PATCH] Fixing broken scrolling with a touch pad on some Windows laptops. This issue #2750 is old, it was fixed and broken again. Now it is being fixed differently. --- src/slic3r/GUI/GLCanvas3D.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index bcb8501d80..622f5b3e27 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -2761,7 +2761,8 @@ void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt) // For some reason the Idle event is not being generated after the mouse scroll event in case of scrolling with the two fingers on the touch pad, // if the event is not allowed to be passed further. // https://github.com/prusa3d/PrusaSlicer/issues/2750 - evt.Skip(); + // evt.Skip() used to trigger the needed screen refresh, but it does no more. wxWakeUpIdle() seem to work now. + wxWakeUpIdle(); #endif /* __WXMSW__ */ // Performs layers editing updates, if enabled