mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Fixed crash when using mouse wheel before the 3D scene is shown (during app startup)
This commit is contained in:
parent
7c75081a31
commit
a13b2b1de3
1 changed files with 3 additions and 0 deletions
|
@ -2313,6 +2313,9 @@ void GLCanvas3D::on_key(wxKeyEvent& evt)
|
||||||
|
|
||||||
void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt)
|
void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt)
|
||||||
{
|
{
|
||||||
|
if (!m_initialized)
|
||||||
|
return;
|
||||||
|
|
||||||
// Ignore the wheel events if the middle button is pressed.
|
// Ignore the wheel events if the middle button is pressed.
|
||||||
if (evt.MiddleIsDown())
|
if (evt.MiddleIsDown())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue