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.04k stars 1.2k forks source link

mousedown event doesn't propagate #572

Open itmaor opened 8 years ago

itmaor commented 8 years ago

Hello, I've noticed that mousedown event doesn't propagate to elements inside the widget. I dig deep and found this line: fn.drag_handler = function(e) { ... .. if (!isTouch) { return false; } }

Practically, if touch is not enabled then stopPropagation() is called by "return false". I'm wondering what's the rationale behind it? Why stop mousedown from bubbling?

Thanks! Itay.