Fixed incorrect scaling issue from mouse input