ericdrowell / KineticJS

KineticJS is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://www.kineticjs.com
3.98k stars 752 forks source link

Cursor position gets offset after scale #937

Closed pxpepe closed 10 years ago

pxpepe commented 10 years ago

Good afternoon, If after I create a stage with a drawing area the cursor position gets offset. See example: http://jsfiddle.net/448Nc/ thankful in advance, Pedro Pepê

lavrton commented 10 years ago

Cursor position has no offset. If you scaled stage you should take scale into account when you are creating new line on mousedown. http://jsfiddle.net/448Nc/1/