Fix property value initialization

This commit is contained in:
2020-07-08 14:13:52 -06:00
parent f810f02ea9
commit 85765e38d4
4 changed files with 8 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ void MagnumItem::mouseMoveEvent(QMouseEvent *evt) {
void MagnumItem::wheelEvent(QWheelEvent *evt) {
if (auto& camera = m_renderer->camera()) {
const Float delta = evt->delta();
const Float delta = evt->angleDelta().y();
if (Math::abs(delta) < 1.0e-2f)
return;
camera->zoom(delta*.01f);