Community
Participate
Working Groups
When the "dragStart" method of the "DragSourceListener" is called, the "DragSourceEvent" parameter holds absolute coordinates of the event and not ones relative to the control where the event happened. My exact use case was a TreeViewer inside a SashForm inside a WizardPage .. etc. I tested the same in RCP and it returned relative coordinates as is stated in the specification. RAP however returns absolute coordinates.
I can confirm this by looking into the code - in DNDSupport#processDragStart the DragSourceEvent event is created with "point" object instead of "mappedPoint" object. Probably, DragSourceEvent.DRAG_SET_DATA and DragSourceEvent.DRAG_END suffer from the same issue.
To correct myself from comment #1 - according to the documentation only "dragStart" event holds relative coordinates. Fixed in CVS HEAD in DNDSupport#processDragStart.