WindowServer: Fix relative mouse vertical flip

This commit is contained in:
2025-08-05 03:09:24 +03:00
parent 5972d40ced
commit 8ea32c7650
@@ -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_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);
}