I'm trying to come up with a simple test case, the one I have right now is not exhibiting the problem, just trying to make it happen with as little code as possible.
One thing I'm doing that might be causing problems: I've got some custom components that dispatch a custom event CustomDragStartEvent. They listen for mouse down on themselves and then shove in the originating mouse event, some extra info, and then bubble that up to whoever wants to catch it. when the parent container acts on this event it pulls out the "original" mouse event and passes that in the doDrag method. Do you think it could be a local coordinate problem since I'm passing in a mouse event caught in a child component? I didn't want to have to add MOUSE_DOWN listeners to all the child elements, so I prefer to have them dispatch a custom event that bubbles so my drag container listens for the event on itself. Is there a better way to do this, I just know the doDrag method needs a mouse event, so I need to find a way to give it one even though I'm dispatching custom events. --- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote: > > Can you post a simple test case? > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of danielggold > Sent: Wednesday, December 19, 2007 8:45 AM > To: [email protected] > Subject: [flexcoders] DragImage initial position wrong, causing > jumpiness > > > > I've seen this in a few places where I'm doing custom drag and drop. > When the DragImage is initially drawn, if you just barely click and > move the mouse, the image is drawn with a Y offset that looks to be > about the height of the dragInitiators container. If you move the > mouse a few more pixels the DragImage snaps back under the mouse. This > causes some annoying flickers in my app because the place the > DragImage is initially drawn is not a valid drop zone, but then it > snaps back to a valid zone. > > This doesn't seem to be something I can control in the doDrag > function, the offsets I can specify there only apply AFTER the > DragImage has "snapped" back to the correct position. > > Any ideas? >

