I posted this on the help mailing list, but thought its probably more a 
development issue:

I have drag drop working without a problem, but I notice it only fires the 
listener if the mouse is released over the target. I'm about to try and 
write something that will fire if there is any over lap at all between 
source and target layers - has any work been done on this, does anyone have 
any pointers?

My reasoning for doing this is that I'm trying to build a system where a 
user can position layers, but layers are not allowed to overlap - so if 
someone moves one layer over the other it should snap to the correct 
position to avoid overlapping.
-----------------------------
on further thought I think there are several events you might want to 
listen for:
drag and drop with mouse released within target area
drag and drop with source and target overlapping
drag and drop with source entirely enclosed within target
drag and drop with target totally enclosed within source

Anyone working on any of those? I'm going to start work on the one of 
interesting to me, the overlapping one, but it would be nice to build a 
framework for all of these, and any others I have forgotten. Other reasons 
why the overlapping one might be good as it allows animated layers to 
interact, you could do a demo of  balls bouncing into each other etc.


Mark 


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/

Reply via email to