Notes my comments below:

--- Benoit Marchant <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I mentioned it before, but I'm pretty sure we need
> to address this. If 
> you click on a layer that's dragable, you will both
> get ondragend and 
> onclick called. If you have an event handler on both
> events doing 
> different things, you're screwed !
> I believe, tell me if that's wrong, that the
> ondragend event should no 
> be sent if just a click happens. To fix that, we can
> either add the 
> test that was in dynapi2 for that reason, or do
> something else, maybe 
> set a "dragmoved" flag in dragevent.onmousemove that
> we could check in 
> dragevent on mouseup ?

See the attached file. I just did a quick fixed. I've
not tested the file but it should work. I've used a
.wasDragged flag to check if the layer was draged

--
Raymond Irving


> 
> Benoit
> 
> 
> 
>
-------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge
> is now open! 
> Get cracking and register here for some mind
> boggling fun and 
> the chance of winning an Apple iPod:
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

Attachment: dragevent.zip
Description: dragevent.zip

Reply via email to