WindowServer: Fix relative mouse vertical flip

This commit is contained in:
Bananymous 2025-08-03 16:34:34 +03:00
parent 5972d40ced
commit 8ea32c7650
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ void WindowServer::on_mouse_move(LibInput::MouseMoveEvent event)
} }
const int32_t new_x = BAN::Math::clamp(m_cursor.x + event.rel_x, min_x, max_x); const int32_t new_x = BAN::Math::clamp(m_cursor.x + event.rel_x, min_x, max_x);
const int32_t new_y = BAN::Math::clamp(m_cursor.y + event.rel_y, min_y, max_y); const int32_t new_y = BAN::Math::clamp(m_cursor.y - event.rel_y, min_y, max_y);
return on_mouse_move_impl(new_x, new_y); return on_mouse_move_impl(new_x, new_y);
} }