From 26bbb237c3b9c3b4b1c1151df289ef13435c9f39 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 14 Jan 2015 16:33:57 +0000 Subject: [PATCH] * All application: Fix unintentional dragging happens while user try to do scrolling over a dragging item in FF(e.g. scrolling over an scrollable infolog entry) --- phpgwapi/js/egw_action/egw_action_dragdrop.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phpgwapi/js/egw_action/egw_action_dragdrop.js b/phpgwapi/js/egw_action/egw_action_dragdrop.js index 507038d8eb..cc671d5594 100644 --- a/phpgwapi/js/egw_action/egw_action_dragdrop.js +++ b/phpgwapi/js/egw_action/egw_action_dragdrop.js @@ -340,6 +340,15 @@ function egwDragActionImplementation() return ai.defaultDDHelper(ai.selected);//$j(document.createElement("div")).addClass('et2_egw_action_ddHelper'); }, "start": function(e) { + + //Stop dragging if user tries to do scrolling by mouse down and drag + //Seems this issue is only happening in FF + var $target = $j(e.originalEvent.target); + if(e.originalEvent.pageX - $target.offset().left + 15 > $target.innerWidth()) + { + return false; + } + return ai.helper != null; }, revert: function(valid)