0
어떻게 드래그 가능한 JcanvaScript 라이브러리를 중지할까요?JcanvaScript 드래그 가능한 것을 어떻게 멈출 수 있습니까?
예를 들어, 끌어서 놓기가 캔버스 요소를 넘는 경우 그림을 그릴 수 있으며 그림을 넘길 수 없습니다.
jc('#img1').draggable({
drag: function(){
point=jc('#img1').position();
if(point.x<0){
//here stop draggable image
//these options don't work
//this.draggable('pause');
//return;
//jc.pause();
}
}
});