[Proto-Scripty] Drag n Drop problem in Safari/Chrome and Opera

43 views
Skip to first unread message

jmack159

unread,
May 6, 2010, 11:54:04 PM5/6/10
to Prototype & script.aculo.us
Hello everyone,

Im working on a project currently using Drag and Drop controls
extensively.
(http://dixonlab.rutgers.edu/tools/faFinder/design.php)

I'm using Prototype 1.6.0.3 and Scriptaculous 1.8.2

In Safari and Chrome (on Windows [4.04 and 4.1.249 respectively] and
OSX) the droppable elements on the right of the page move
*exponentially* far with a small mouse movement during dragging. That
is, when trying to drag one of the divs, a small mouse movement (a few
pixels) results in movement of the div by several hundred pixels,
essentially making the user interafce unusable.

On Opera (10.10), the initial dragging works as expected, but when the
dragged div goes to revert, the div ends up about 1,000 pixels to the
right, and about 300 pixels further down the page than its original
position.

Everything appears to go according to plan with Firefox (v3.6.3) and
IE (8.0.76 - may require compatibility view for some components to be
properly rendered, but drag and drop should still work).

Any idea what is causing this? Thanks in advance for your help!

Josh

--
You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group.
To post to this group, send email to prototype-s...@googlegroups.com.
To unsubscribe from this group, send email to prototype-scripta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.

Evgeny Bogdanov

unread,
Jun 16, 2011, 10:50:01 AM6/16/11
to prototype-s...@googlegroups.com
Hello Josh,

Did you manage to find the problem or solution?

I have the same problem on Chrome (in Windows). On Mac it works ok

Best
Evgeny

Evgeny Bogdanov

unread,
Jun 18, 2011, 2:47:12 AM6/18/11
to prototype-s...@googlegroups.com
Self-reply, might be usefuly for someone.

Chrome on Windows seems to call additional mousemove event when mouse not moved but just clicked.

Solution was to add {delay: 10} parameter to new Draggable.
Now work in both MacOS and Windows.
Reply all
Reply to author
Forward
0 new messages