Hi,

It turns out that there is a small bug in the implementation of
qx.ui.form.ToggleButton._onMouseDown which is preventing drag-and-drop
from working.  The fix?

change:

      e.stopPropagation();

to

      if (!this.isDraggable()) {
        e.stopPropagation();
      }

at the end of the function.  Do I need to open a bug report, or is this
enough info?

Basically what is happening is that the drag/drop handler is thwarted by
the stopPropagation() call.  In terms of unwanted side effects of
propagating the mousedown event, if a programmer explicitly calls
setDraggable() on a checkbox, then that is a good indication that he/she
wants the event to propagate to the DragDrop event handler.  I don't
know much of anything about the qooxdoo internals, so perhaps there are
some other nasty side effects that I'm not aware of?  In any case, with
my rudimentary testing, it works perfectly with the above fix.

Thanks,
Greg

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to