support scale in mouse input