Hi!
I see the drag event (the patched version) and I modify a little:
in onmousemove function:

if(ic && o._useDragIcon) {
ic._dragOrg = o;
ic.setLocation(o.getPageX(),o.getPageY());
ic.setSize(o.w,o.h);
// if icon is fixed width then center at pointer
if(ic.w!=o.w||ic.h!=o.h) ic.setLocation(e.getPageX()-(ic.w/2),e.getPageY()-
(ic.h/2));

I change the setLocation, setSize and the if to:
ic.setLocation(e.getPageX()-(ic.w/2),e.getPageY()-(ic.h/2));

It's work correctily (I think) all system.
If not, the icon location is bad. (In Mozilla).

Cow



-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise 
Linux in the Boardroom; in the Front Office; & in the Server Room 
http://www.enterpriselinuxforum.com
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/

Reply via email to