(evt, vertical, sortable)
| 1810 | } |
| 1811 | |
| 1812 | function _ghostIsFirst(evt, vertical, sortable) { |
| 1813 | let firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true)); |
| 1814 | const childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl); |
| 1815 | const spacer = 10; |
| 1816 | |
| 1817 | return vertical ? |
| 1818 | (evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right) : |
| 1819 | (evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left) |
| 1820 | } |
| 1821 | |
| 1822 | function _ghostIsLast(evt, vertical, sortable) { |
| 1823 | const lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable)); |
no test coverage detected
searching dependent graphs…