Author: jmorliaguet
Date: Wed Jun 14 12:42:58 2006
New Revision: 3406

Modified:
   cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js

Log:

- fix: take into account the page scroll offset when storing the initial
  object coordinates before dragging.



Modified: cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js
==============================================================================
--- cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    
(original)
+++ cpsskins/branches/paris-sprint-2006/lib/cpsskins/src/cpsskins.js    Wed Jun 
14 12:42:58 2006
@@ -860,9 +860,11 @@
     if (e.cancelable) e.preventDefault();
 
     this.target = $(draggable);
+
+    Position.prepare();
     var pos = Position.cumulativeOffset(draggable);
-    this.x0 = pos[0];
-    this.y0 = pos[1];
+    this.x0 = pos[0] + Position.deltaX;
+    this.y0 = pos[1] + Position.deltaY;
 
     this.startDragX = Event.pointerX(e);
     this.startDragY = Event.pointerY(e);
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to