mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Fixed crash when using mouse wheel before the 3D scene is shown (during app startup)
This commit is contained in:
@@ -2313,6 +2313,9 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
|
||||
|
||||
void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt)
|
||||
{
|
||||
if (!m_initialized)
|
||||
return;
|
||||
|
||||
// Ignore the wheel events if the middle button is pressed.
|
||||
if (evt.MiddleIsDown())
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user