soulwire/sketch.js

when retina true, after resize window, canvasRendingContext will be scale large

kkxlkkxllb opened this issue · 1 comments

when retina true, after resize browser window, canvasRendingContext will be scale large

Ran into this too, as a workaround I added a callback on resize to scale down again by 1 / window.devicePixelRatio (but only after initial setup resize is done). Would be nice to see a fix for this or I'll submit a PR when I get around to it. 😄