Drag&drop + visibility corner case

0 views
Skip to first unread message

Imri Goldberg

unread,
Feb 27, 2009, 9:35:01 AM2/27/09
to MochiKit
Heya,

I just did a small writeup in my blog (
http://www.algorithm.co.il/blogs/index.php/programming/mochikit-dragdrop-corner-case/
) about a corner case I encountered while using Mochikit.
The corner case happened when a dragged element with a snap function
parameter loses visibility. When that happens, the coordinates the
snap function receives may be badly defined. My workaround was forcing
the element's visibility in the Draggable's starteffect and endeffect
options.
I hope this helps anyone else who gets stuck on a similar issue.

Cheers,
Imri
Reply all
Reply to author
Forward
0 new messages