soulwire / sketch.js

Cross-Platform JavaScript Creative Coding Framework
MIT License
4.09k stars 431 forks source link

Can't get to work when canvas has "transform: scale" #71

Open robsonbramos opened 9 years ago

robsonbramos commented 9 years ago

I've been working on it for four straight days and so far I could not find an answer. Here it goes: The plugin itself works as expected, but when the canvas has the style "transform: scale (2)", the mouse pointer is not detected correctly.

I've tried everything, I looked around all over stackoverflow for a solution, but to no success.

I wonder how you can use the plugin in conjunction with these css transforms.