ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.03k stars 1.2k forks source link

don't ignore descendants of handle for dragging #326

Closed hrosenbauer closed 10 years ago

hrosenbauer commented 10 years ago

Function ignore_drag checks if event.target is a descendant of or the handle itself. This allows the handle to have child elements and dragging still works.

hrosenbauer commented 10 years ago

See http://jsbin.com/fuwunuyi/1/edit for a demo scenario: I added a span inside the header and now the widgets can't be dragged.