MCPcopy
hub / github.com/bevacqua/dragula / isInitialPlacement

Function isInitialPlacement

dragula.js:325–335  ·  view source on GitHub ↗
(target, s)

Source from the content-addressed store, hash-verified

323 }
324
325 function isInitialPlacement (target, s) {
326 var sibling;
327 if (s !== void 0) {
328 sibling = s;
329 } else if (_mirror) {
330 sibling = _currentSibling;
331 } else {
332 sibling = nextEl(_copy || _item);
333 }
334 return target === _source && sibling === _initialSibling;
335 }
336
337 function findDropTarget (elementBehindCursor, clientX, clientY) {
338 var target = elementBehindCursor;

Callers 3

dropFunction · 0.85
cancelFunction · 0.85
acceptedFunction · 0.85

Calls 1

nextElFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…