alpertayfun Posted April 20, 2015 Share Posted April 20, 2015 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 More sharing options...
rich Posted April 21, 2015 Share Posted April 21, 2015 item.input.disableDrag();Please check the docs, because they clearly say 'stopDrag' should not be used to do what you're trying to do! Link to comment Share on other sites More sharing options...
Recommended Posts