fallen90 / ppdrag

jquery drag
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Is an object with an absolute position a problem? #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. provide a DRAGABBLE object which is in absolute position

2. or provide a DRAGABBLE object which has a dynamic position being called
via a customized jquery script. The script is currently meant for
randomizing the position of the object. .css('margin-left', 'XX px');

What is the expected output? What do you see instead?

What I expect to see the object when being clicked will be positioned
automatically under the MOUSE CURSOR.

What I see is that when you click on the object with an absolute position,
the object being dragged moves away from the mouse CURSOR.

What version of the product are you using? On what operating system?
Currently the latest as of this post.

Please provide any additional information below.

HERE'S WHAT:
I made a script to make a div in randomized position which makes its
position:absolute;

The script takes action first as it places the div on a random position in
the browser's canvas. And then when you click on the div (OUR OBJECT), it
will move away from the mouse's CURSOR but we can still drag it.

Original issue reported on code.google.com by webp...@gmail.com on 27 Aug 2008 at 8:13