Thank you so much for this! I tried literally everything you can think of to solve the erratic mouse movement and the 2D elements' scaling issues, and you solved them finally!