Fixed editor camera speed changing when scrolling on UI elements

This commit is contained in:
2016-03-01 22:46:19 +01:00
parent c60e1ba7e4
commit 6eb0b83d6b
@@ -104,6 +104,11 @@ protected:
if (!m_Enabled) {
return false;
}
ImGuiIO& io = ImGui::GetIO();
if (io.WantCaptureMouse || io.WantCaptureKeyboard) {
return false;
}
m_SpeedMultiplier += e.DeltaY * (0.1 * m_SpeedMultiplier);
m_Config->Set("Editor.CameraSpeed", m_SpeedMultiplier);