Implemented scaling function around mouse position