Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 295475 - Mouse-events do not work during drag-gestures in FF
Summary: Mouse-events do not work during drag-gestures in FF
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.3 M4   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 285390
  Show dependency tree
 
Reported: 2009-11-18 10:33 EST by Tim Buschtoens CLA
Modified: 2009-11-19 06:57 EST (History)
1 user (show)

See Also:


Attachments
Fix (1.83 KB, patch)
2009-11-18 10:55 EST, Tim Buschtoens CLA
no flags Details | Diff
alternative fix-implementation (1.87 KB, patch)
2009-11-18 11:51 EST, Tim Buschtoens CLA
ruediger.herrmann: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Buschtoens CLA 2009-11-18 10:33:41 EST
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
Comment 1 Tim Buschtoens CLA 2009-11-18 10:55:38 EST
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.
Comment 2 Tim Buschtoens CLA 2009-11-18 11:51:19 EST
Created attachment 152485 [details]
alternative fix-implementation

Works 100% identical, but out of principle the preventDefault is called outside the try-catch block.
Comment 3 Rüdiger Herrmann CLA 2009-11-19 06:22:44 EST
Applied patch to CVS HEAD