refined mouse scaling and positioning