0

I wrote this script, and when I move the slider, the squares should instantly resize. They dont. It takes a few seconds. Any ideas?

Here's a link to my code: code on github gist. You should be able to drag the slider and the squares resize. Why does it delay?

theideasmith
  • 2,835
  • 2
  • 13
  • 20

1 Answers1

1

You should add paper.view.draw() after you resize the squares so paper will update the canvas. It's redrawing internally but not updating the canvas.

There might be an issue with using on("change") as well - see this issue: onchange event on input range not triggering

bmacnaughton
  • 4,950
  • 3
  • 27
  • 36