(evt, vertical, sortable)
| 2249 | _silent = false; |
| 2250 | } |
| 2251 | function _ghostIsFirst(evt, vertical, sortable) { |
| 2252 | var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true)); |
| 2253 | var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl); |
| 2254 | var spacer = 10; |
| 2255 | return vertical ? evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left; |
| 2256 | } |
| 2257 | function _ghostIsLast(evt, vertical, sortable) { |
| 2258 | var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable)); |
| 2259 | var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl); |
no test coverage detected
searching dependent graphs…