Flat, round, designer-friendly pseudo-3D engine for canvas & SVG
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿž Fix resize bug for high pixel ratio. #41

+2 -1
+2 -1
js/illustration.js
··· 134 134 var pixelRatio = this.pixelRatio = window.devicePixelRatio || 1; 135 135 this.element.width = this.canvasWidth = width * pixelRatio; 136 136 this.element.height = this.canvasHeight = height * pixelRatio; 137 - if ( pixelRatio > 1 ) { 137 + var needsHighPixelRatioSizing = pixelRatio > 1 && !this.resize; 138 + if ( needsHighPixelRatioSizing ) { 138 139 this.element.style.width = width + 'px'; 139 140 this.element.style.height = height + 'px'; 140 141 }