Hi Sebastian

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


I found a way to supress the drag & grop event and there is no need anymore for a "_checkDragStartEvent" function inside QxWidget.

The QxMouseEvent class has a function "preventDefault" which is tested only in QxDragAndDropManager, and if this function returns true the "dragstart" event is not raised.

So in a common handleMouseDown function is enough to do:

_handleMouseDown = function(e) {
  if (!condition)
    e.preventDefault();
}

Do you agree this solution?

Daniel

Reply via email to