Alex Zahorodniy
Alex Zahorodniy

Reputation: 245

Drag and drop some elements lagging

I'm trying to make a script using Jquery UI (droppable and draggable).
Link: http://temp.spendhunters.ru/4.php

There are 4 white icons around the yellow icon. White will have to drop on the yellow. With those icons on the left - everything is fine. The problem with those on the right, they lag behind when you drag the cursor, and the event "Drop" does not work.

How can i fix it?
I want all white icons to drop on yellow without errors and with normal animation.

Upvotes: 0

Views: 1699

Answers (1)

K K
K K

Reputation: 18099

Remove right:0 from the right positioned div. Replace it with left:100% or any numeric value for left which suits your design. The delay is due to the right:0 css in the right positioned div. Try it, it should solve your issue. You can try this change in browser console itself.

Upvotes: 2

Related Questions