0
내가 배열로 밀어 Raphael 요소를 많이 가지고드래그()
var start = function() {
this.ox = this.attr("cx");
this.oy = this.attr("cy");
},
move = function (dx, dy) {
this.attr({cx: this.ox + dx, cy: this.oy + dy});
}
for(var i = 0; i < 149; i++) {
cubes = paper.rect(Math.floor(Math.random()*2000), Math.floor(Math.random()*2000), 0, 0);
cubes.animate({ width: 25, height: 25 }, 500, "bounce");
cubesmixed.push(cubes);
cubesmixed[i].drag(move, start);
}
을하지만 불행히도 나는 그들을 끌 수 없습니다. 가장 이상한 것은, start
과 move
입니다. 그러나 왜 그들은 움직이지 않는가?
미리 감사드립니다.