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

Likely fix for "strokeScaleEnabled" issue (#530) #991

Open zachkinstner opened 10 years ago

zachkinstner commented 10 years ago

This fix for issue #530 involves copying some logic from Kinetic.SceneContext._stroke() to Kinetic.HitContext._stroke(). The HitContext was not updating its transforms before drawing a line with strokeScaleEnabled == false.

These changes resolved the immediate issues that I'm having today. I haven't tested other scenarios.