Fix property value initialization
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user