desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 386 forks source link

fixed and initial position. #134

Closed guidoferreyra closed 8 years ago

guidoferreyra commented 8 years ago

Hi! I have elements with position: fixed and initial position of the elements setted with left and top. But when draggabilly is running it overrides the position: fixed style, adding position: relative, so my items are not in the initial position that I want. Any idea how can I achieve this?

Thanks in advance!

guidoferreyra commented 8 years ago

I looked to the draggabilly.js and I've found that I can use position: absolute and this solves my issue, but when I start to drag, in the first mouse move the element is "teleported" a few pixels away the initial position and then it drags fine.

desandro commented 8 years ago

Thanks for reporting this issue. Draggabilly v2.1.1 has been released with a fix for this issue. Please upgrade and see how it works!

guidoferreyra commented 8 years ago

Thank you!