track mouse movements on 800 x 600 and show on 1024 x 768
- by peter
i am tracking the mouse movements of a user using javascript and storing it along with the browser resolution.
Then i can check the user mouse movement in my browser which is 1024 x 768 resolution.
But if the user is using a browser in 800 x 600 then the mouse movements are recorded wrt 800 x 600. And when i see the mouse movements in 1024 x 768 the mouse movements are wrong.
So how can i scale from 800 x 600 to 1024x 768?