diff --git a/radiant/camwindow.cpp b/radiant/camwindow.cpp index 99196452..0f23fdf9 100644 --- a/radiant/camwindow.cpp +++ b/radiant/camwindow.cpp @@ -1243,7 +1243,7 @@ static void wheelmove_scroll( const QWheelEvent *event, CamWnd& camwnd ){ } Camera_Freemove_updateAxes( cam ); - camera_zoom( camwnd, event->position().x(), event->position().y(), g_camwindow_globals_private.m_nScrollMoveSpeed ); + camera_zoom( camwnd, event->x(), event->y(), g_camwindow_globals_private.m_nScrollMoveSpeed ); } else if ( angleDelta < 0 ) { if ( cam.movementflags & MOVE_FOCUS ) { @@ -1257,7 +1257,7 @@ static void wheelmove_scroll( const QWheelEvent *event, CamWnd& camwnd ){ } Camera_Freemove_updateAxes( cam ); - camera_zoom( camwnd, event->position().x(), event->position().y(), -g_camwindow_globals_private.m_nScrollMoveSpeed ); + camera_zoom( camwnd, event->x(), event->y(), -g_camwindow_globals_private.m_nScrollMoveSpeed ); } } diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 42a9275b..12cb0e68 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -530,10 +530,10 @@ protected: g_pParentWnd->SetActiveXY( &m_xywnd ); } if ( event->angleDelta().y() > 0 ) { - m_xywnd.ZoomInWithMouse( event->position().x(), event->position().y() ); + m_xywnd.ZoomInWithMouse( event->x(), event->y() ); } else if ( event->angleDelta().y() < 0 ) { - m_xywnd.ZoomOutWithMouse( event->position().x(), event->position().y() ); + m_xywnd.ZoomOutWithMouse( event->x(), event->y() ); } }