fix(platform): compute mouseMoved delta in Cocoa mouse move events (#1747)

Bug Fixes:
- Mouse movement input now reports the correct movement delta when the cursor moves, improving responsiveness and accuracy for pointer-based interactions.
This commit is contained in:
mimus-assa 2026-07-18 13:22:26 -06:00 committed by GitHub
parent bdea0b23b4
commit a4cbf1a575
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -739,6 +739,7 @@ void CocoaWindow::handleMouseButton(Fw::MouseButton button, bool pressed, const
void CocoaWindow::handleMouseMove(const Point& position)
{
m_inputEvent.reset(Fw::MouseMoveInputEvent);
m_inputEvent.mouseMoved = position - m_inputEvent.mousePos;
m_inputEvent.mousePos = position;
if (m_onInputEvent)