View Full Version : Quick Question With Droppable

24 Jul 2011, 6:11 AM
I see for Droppable that I can set the option for validDropMode: 'contains', or 'intersects'. Is there an option, or some way to do a contains, but have it work for + or - ten pixels on each side? So it's something more than intersects, but not quite as perfect as contains.

Basically I'm trying to let a user successfully drop a div if it's it's within 10 pixels of the drop zone div, which is the identical size of the draggable div.