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.
This commit is contained in:
bubnikv 2021-12-04 09:36:33 +01:00
parent 303de63a90
commit 6122f630d4

View file

@ -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