~ Fix position of the mouse was set after the event callbacks were run. (#143)

This commit is contained in:
REMqb
2017-11-22 00:35:32 +01:00
committed by Jérôme Leclercq
parent 046926e4d4
commit ecadcabfa9

View File

@@ -1257,11 +1257,12 @@ namespace Nz
event.mouseMove.deltaY = motionNotifyEvent->event_y - m_mousePos.y;
event.mouseMove.x = motionNotifyEvent->event_x;
event.mouseMove.y = motionNotifyEvent->event_y;
m_parent->PushEvent(event);
m_mousePos.x = motionNotifyEvent->event_x;
m_mousePos.y = motionNotifyEvent->event_y;
m_parent->PushEvent(event);
break;
}