mouse coordinates had to be adjusted for padding, now scaling works with padding as well