mobomo / sketch.js

A jQuery plugin for dead simple Canvas-based drawing.
http://intridea.github.com/sketch.js
290 stars 110 forks source link

Responsiveness #41

Open carlosnpz opened 8 years ago

carlosnpz commented 8 years ago

What about responsiveness? I implemented this plugin on a responsive website, but if I draw, for example, a big sun in a resolution of 1920x1080 and resize the screen to 1024x768, the drawing moves horizontally and loses its proportion related to the background... :'(

jeromechoo commented 8 years ago

@carlosnpz You're drawing images, so it's as responsive as an image could be on a site. If the width is resized, the image will resize itself appropriately. Unless I'm missing something you're saying?

vetri50ster commented 7 years ago

@carlosnpz : SketchJS -> Canvas was not responsive.How to get rid of this issue.When i can expect the updated release or suggestion?

slruslan commented 7 years ago

Hi guys, I've made a fork and fixed this problem. The resize event is handled, sketch sizes and positions are all recalculated and updated. Since author doesn't accept pull requests, you can check out the code here: https://github.com/slruslan/sketch.js.