track mouse movements on 800 x 600 and show on 1024 x 768

Posted by peter on Stack Overflow See other posts from Stack Overflow or by peter
Published on 2010-06-11T10:04:08Z Indexed on 2010/06/11 10:12 UTC
Read the original article Hit count: 253

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about mouse