From 7f32fed66766f9f1edda8cbe84ecf9a6e621ffe2 Mon Sep 17 00:00:00 2001 From: opi Date: Wed, 19 Nov 2014 17:23:50 +0100 Subject: [PATCH] [fix] Prevent firefox native D'n'D behavior. --- portal/assets/js/ynhpanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/portal/assets/js/ynhpanel.js b/portal/assets/js/ynhpanel.js index 80e6a07..4c971ea 100644 --- a/portal/assets/js/ynhpanel.js +++ b/portal/assets/js/ynhpanel.js @@ -124,6 +124,9 @@ var dragg = function(id) { // Start dragging window.addEvent(elem, 'mousedown', function(e){ + // Prevent firefox native D'n'D behavior + window.eventPreventDefault(e); + selected = elem; x_elem = x_pos - selected.offsetLeft; y_elem = y_pos - selected.offsetTop;