Snap with padding?


In the API documentation I see Snap, SnapMode and SnapTolerance; none of which seem to do what I want. I have multiple draggable divs in my UI that snap together, which is great, but I have added a drop shadow so I would really like them to snap but stay 5 or 10 pixels apart from each other.



  • alexahalesd

    The scroll-padding-* properties define offsets for the optimal viewing region of the scrollport: the region used as the target region for placing things in view of the user. This allows the author to exclude regions of the compareheight that are obscured by other content (such as fixed-positioned toolbars or sidebars), or to put more breathing room between a targeted element and the edges of the scrollport.