mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
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:
parent
bdea0b23b4
commit
a4cbf1a575
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue