archan937 / topup

The #1 Javascript Pop Up / Lightbox made by Paul Engel
http://gettopup.com
158 stars 32 forks source link

extending draggable() function is not ok #6

Open valugi opened 14 years ago

valugi commented 14 years ago

If somebody has already draggable elements in the page, you are changing the default binding behaviour of the dragged objects.

My solution is to comment out the overloading of draggable (151) and to change //jQuery("#top_up").draggable({only: ".te_title,.te_top ,.te_bottom "}); on 1005 (+-) jQuery("#top_up").draggable({only: ".te_frame"}); Your photos keep dragging and mine as well.

You have there an if that prevents the drag to be applied to other elements, but my page could contain other draggable elements than yours.