Only use event element, if offset is positive.
authorJan Schneider <jan@horde.org>
Wed, 18 Mar 2009 12:26:52 +0000 (13:26 +0100)
committerJan Schneider <jan@horde.org>
Wed, 18 Mar 2009 12:26:52 +0000 (13:26 +0100)
imp/js/src/dragdrop.js

index eb80024..9fdbf02 100644 (file)
@@ -443,7 +443,9 @@ Drag = Class.create({
     {
         var drop, x, y;
 
-        if (this.options.caption || this.options.offset) {
+        if (this.options.caption ||
+            (this.options.offset &&
+             (this.options.offset.x > 0 || this.options.offset.y > 0))) {
             return e.element();
         }