Fix of mouse wheel scrolling over the variable layer height bar
with OSX Retina rendering.
This commit is contained in:
parent
7719173f89
commit
72d85261fb
@ -5231,6 +5231,12 @@ void GLCanvas3D::on_mouse_wheel(wxMouseEvent& evt)
|
|||||||
if (evt.MiddleIsDown())
|
if (evt.MiddleIsDown())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
#if ENABLE_RETINA_GL
|
||||||
|
const float scale = m_retina_helper->get_scale_factor();
|
||||||
|
evt.SetX(evt.GetX() * scale);
|
||||||
|
evt.SetY(evt.GetY() * scale);
|
||||||
|
#endif
|
||||||
|
|
||||||
// Performs layers editing updates, if enabled
|
// Performs layers editing updates, if enabled
|
||||||
if (is_layers_editing_enabled())
|
if (is_layers_editing_enabled())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user