Community
Participate
Working Groups
When trying to "drag" an element in Firefox, no "mouseover" and "mouseout"-events are thrown if the element has "overflow:hidden". "mousemove"-events work but have an incorrect originalTarget. Setting "-moz-user-select:none" on the element cancels the effect. Reproduce in Controls-Demo: - Press down over an empty space in a group-box. - Hover check-boxes in the same group: Hover-effect is there. - Hover check-boxes in another group: No hover-effect. This bug prevents a working drag&drop-implementation. Qooxdoo bug: http://bugzilla.qooxdoo.org/show_bug.cgi?id=3008 Mozilla bug: http://bugzilla.mozilla.org/show_bug.cgi?id=339293
Created attachment 152483 [details] Fix This works by calling preventDefault on mousedown. An exception must be made for "input"-elements, otherwise it would be impossible to interact with them using the mouse. This also means that they are not dragable. Using "-moz-user-select:none" is not practical since the behavior that this causes is inheritable and can not be overwritten, hence it would be impossible to select text in text-fields.
Created attachment 152485 [details] alternative fix-implementation Works 100% identical, but out of principle the preventDefault is called outside the try-catch block.
Applied patch to CVS HEAD