(evt, vertical, sortable)
| 1820 | } |
| 1821 | |
| 1822 | function _ghostIsLast(evt, vertical, sortable) { |
| 1823 | const lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable)); |
| 1824 | const childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl); |
| 1825 | const spacer = 10; |
| 1826 | |
| 1827 | return vertical ? |
| 1828 | (evt.clientX > childContainingRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left) : |
| 1829 | (evt.clientY > childContainingRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top); |
| 1830 | } |
| 1831 | |
| 1832 | function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) { |
| 1833 | let mouseOnAxis = vertical ? evt.clientY : evt.clientX, |
no test coverage detected
searching dependent graphs…