Hi
I'm writing a custom widget to display a calendar (think Outlook or Google
Calendar) and using drag & drop to rearrange the calendar entries; when
dragging the entry, I want to give feedback saying what time the entry will
be moved to. I've created a widget to act as a "caret" to say what time
you're hovering over and I want to update that every time the mouse moves
during the drag.
The problem is that the time of day that the event will be moved to must be
calculated from the mouse offset but the "dragover" event is fired only once
as you enter a new target widget, not every time the mouse moves; by
contrast, the "drag" event is fired on the source widget every mouse move.
It's difficult (or very inelegant) to provide fine-grained feedback based on
the drop location my solution so far is to pass the calendar entry's
"drag" event to the target, but this is a problem when dragging between
different targets so I'll also have to find the control currently under the
mouse and find the "real" target.
Is there a better way?
John
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel