Jump to content

stop dragging


alpertayfun
 Share

Recommended Posts

Hello,

 

 

I need to if item.x equal 100 then items cannot be drag.

 

I added : 

 

currentsprite.events.onDragStop.add(mouseDragEnd, this);

 

function mouseDragEnd(item, pointer) {

 

if(item.x == 100)

 item.stopDrag();

}

 

 

But there is not working. Did anyone help me = ) ? 

 

 

Thanks.

Alper

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...