Daniel Dumitrescu schrieb:
Hello Sebastian
        >     Just my 2 cents: If you want to develop complex widgets
        with qooxdoo it
        >     might be better to use the renderer branch.
        >
        >     Please take a look at managers/QxDragAndDropManager.js. At
        line 218 you
        >     should find the following functions:
        >
        >     proto._handleMouseDown = function(e)
        >
        >     There is currently no check which button is pressed. We
        could probably
        >     add a new property to QxDragAndDropManager on which buttons
        to react.
        >     But this is not really nice, because it changes the
        behavior for all
        >     widgets on the page. Better it would be in my opinion to
        let the source
        >     widget say if the settings in the event are correctly, to
        be handled as
        >     a dragstart event. What's about a function
        "_checkDragStartEvent" in
        >     QxWidget as an empty placeholder which will be executed
        here and must
        >     return a boolean value. If it's false we directly return
        from the
        >     _handleMouseDown functions and the drag and drop action is
        canceled.
        >
        >     Regards,
        >
        >     Sebastian
        >
        >

I've inserted an empty placeholder in QxWidget and i override it in my class, and if this function returns false in my _handleMouseDown function then indeed the "dragstart" event is not fired but neither the "mousedown" event will not propagate to the QxWidget kids ( i have other QxAtom class inside my Qxwidget-derived class), so i will need also this event to go down in the mouse event manager.

I'm afraid i will need the event mechanism to propagate in the normal way and not to stop on my _handleMouseDown function but also the "dragstart" event should be fired only when i drag the mouse with the left button down.

Hi Daniel,

The drag and drop manager should not stop the event bubbling. Please take a look at QxEventManager and try to find out yourself what's wrong.

In line 628 you find the following:

  if (typeof QxDragAndDropManager == "function") {
    (new QxDragAndDropManager).handleMouseEvent(vEventObject);
  };

I don't see any influence to the event bubbling there nor a propagationStop call or such a thing. But I am working until weeks on renderer and have possible not all details in my head for the current HEAD.

Sebastian


Can you help me with another advise?

Thank you very much


Daniel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to