Actions
Feature #2221
openDrag&Drop without a "jumping" icon
Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
09/18/2013
Due date:
% Done:
0%
Estimated time:
Description
Feature request from "discussion" here: http://redmine.webtoolkit.eu/boards/2/topics/7565
It would be great if there is a additional feature so that the icon won't "jump" during drag&drop. In my opinion the dragOffset like in the sketch below needs to be taken into account.
position 0,0 of the element
+-------------------------+
|\ |
| \ (dragOffset) |
| \ |
| + (clickposition |
| inside element) |
+-------------------------+
I did a short trial to implement this directly in Wt.js but for some reasons it doesn't work. To be more precise the dragOffset works but the dropTarget couldn't be determined most of the time. I couldn't figure out why. I just changed the following lines in the dragStart function:
old:
ds.offsetX = -4;
ds.offsetY = -4;
new:
var pc = WT.pageCoordinates(e);
ds.object.offsetX = pc.x - ds.object.offsetLeft;
ds.object.offsetY = pc.y - ds.object.offsetTop;
Thank you very much
Florian
No data to display
Actions