Jump to content
Search Community

Recommended Posts

clipclicmusic
Posted

Hi

 

I would like to prevent the user dropping a dragged item onto other elements on the stage ( ie the item must be dropped on "empty" space).

Is there an easy way to do this when using TransformManager ?

Thanks

 

JAson

Posted

Nope, sorry, that would require customizations. You could, of course, listen for the FINISH_INTERACTIVE_MOVE event and just force it to the closest "acceptable" position when they drop the object. But forcing it to ignore the MOUSE_UP and act as though it continues to drag it even though the user's interactions indicated they wanted to drop it would require more complicated customizations. Frankly (and you didn't ask my opinion, so feel free to ignore it), I think it'd be confusing as a user to drag an object, let go of the mouse, and have it ignore my request and continue to keep the object attached to my mouse. It'd also make it more challenging to know when the user wants to drop it again if their mouse is already up - how would they indicate they want to re-drop it other than clicking again and letting go?

clipclicmusic
Posted

Hi Jack

 

I didn't ask for your opinon. But I think everyone would agree that it is always welcome !

 

I agree with what you say. I am going to have to think of something else :)

 

Thx

 

Jason

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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