MCPcopy Index your code
hub / github.com/SortableJS/Sortable / dragStarted

Function dragStarted

plugins/AutoScroll/AutoScroll.js:47–59  ·  view source on GitHub ↗
({ originalEvent })

Source from the content-addressed store, hash-verified

45
46 AutoScroll.prototype = {
47 dragStarted({ originalEvent }) {
48 if (this.sortable.nativeDraggable) {
49 on(document, 'dragover', this._handleAutoScroll);
50 } else {
51 if (this.options.supportPointer) {
52 on(document, 'pointermove', this._handleFallbackAutoScroll);
53 } else if (originalEvent.touches) {
54 on(document, 'touchmove', this._handleFallbackAutoScroll);
55 } else {
56 on(document, 'mousemove', this._handleFallbackAutoScroll);
57 }
58 }
59 },
60
61 dragOverCompleted({ originalEvent }) {
62 // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)

Callers

nothing calls this directly

Calls 1

onFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…