Adobe AIR canvas dimensions messed up

Posted by Nikhil on Stack Overflow See other posts from Stack Overflow or by Nikhil
Published on 2009-11-11T17:29:31Z Indexed on 2010/05/31 22:03 UTC
Read the original article Hit count: 177

Filed under:
|
|

I'm messing about with Canvas in Adobe Air. But their seems to be some issue with the mouse coordinates. The more I click towards the right, the difference between the draw position and actual click increases. My code is

Wb.canvas.fillRect(evt.clientX-canvasTag.clientX, evt.clientY-canvasTag.clientY, 50, 50);

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about air