[fix] Prevent firefox native D'n'D behavior.

This commit is contained in:
opi 2014-11-19 17:23:50 +01:00
parent c932716470
commit 7f32fed667

View file

@ -124,6 +124,9 @@ var dragg = function(id) {
// Start dragging // Start dragging
window.addEvent(elem, 'mousedown', function(e){ window.addEvent(elem, 'mousedown', function(e){
// Prevent firefox native D'n'D behavior
window.eventPreventDefault(e);
selected = elem; selected = elem;
x_elem = x_pos - selected.offsetLeft; x_elem = x_pos - selected.offsetLeft;
y_elem = y_pos - selected.offsetTop; y_elem = y_pos - selected.offsetTop;