@schedule-x/drag-and-drop
Advanced tools
Comparing version
@@ -302,2 +302,4 @@ 'use strict'; | ||
document.removeEventListener('touchmove', this.handleMouseOrTouchMove); | ||
document.removeEventListener('mouseup', this.handleMouseUpOrTouchEnd); | ||
document.removeEventListener('touchend', this.handleMouseUpOrTouchEnd); | ||
this.updateCopy(undefined); | ||
@@ -319,11 +321,7 @@ const shouldAbort = testIfShouldAbort(this.$app, this.eventCopy, this.originalStart, this.originalEnd, this.updateCopy); | ||
document.addEventListener('mousemove', this.handleMouseOrTouchMove); | ||
document.addEventListener('mouseup', this.handleMouseUpOrTouchEnd, { | ||
once: true, | ||
}); | ||
document.addEventListener('mouseup', this.handleMouseUpOrTouchEnd); | ||
document.addEventListener('touchmove', this.handleMouseOrTouchMove, { | ||
passive: false, | ||
}); | ||
document.addEventListener('touchend', this.handleMouseUpOrTouchEnd, { | ||
once: true, | ||
}); | ||
document.addEventListener('touchend', this.handleMouseUpOrTouchEnd); | ||
} | ||
@@ -330,0 +328,0 @@ timePointsPerPixel() { |
@@ -300,2 +300,4 @@ var PluginName; | ||
document.removeEventListener('touchmove', this.handleMouseOrTouchMove); | ||
document.removeEventListener('mouseup', this.handleMouseUpOrTouchEnd); | ||
document.removeEventListener('touchend', this.handleMouseUpOrTouchEnd); | ||
this.updateCopy(undefined); | ||
@@ -317,11 +319,7 @@ const shouldAbort = testIfShouldAbort(this.$app, this.eventCopy, this.originalStart, this.originalEnd, this.updateCopy); | ||
document.addEventListener('mousemove', this.handleMouseOrTouchMove); | ||
document.addEventListener('mouseup', this.handleMouseUpOrTouchEnd, { | ||
once: true, | ||
}); | ||
document.addEventListener('mouseup', this.handleMouseUpOrTouchEnd); | ||
document.addEventListener('touchmove', this.handleMouseOrTouchMove, { | ||
passive: false, | ||
}); | ||
document.addEventListener('touchend', this.handleMouseUpOrTouchEnd, { | ||
once: true, | ||
}); | ||
document.addEventListener('touchend', this.handleMouseUpOrTouchEnd); | ||
} | ||
@@ -328,0 +326,0 @@ timePointsPerPixel() { |
@@ -306,2 +306,4 @@ (function (global, factory) { | ||
document.removeEventListener('touchmove', this.handleMouseOrTouchMove); | ||
document.removeEventListener('mouseup', this.handleMouseUpOrTouchEnd); | ||
document.removeEventListener('touchend', this.handleMouseUpOrTouchEnd); | ||
this.updateCopy(undefined); | ||
@@ -323,11 +325,7 @@ const shouldAbort = testIfShouldAbort(this.$app, this.eventCopy, this.originalStart, this.originalEnd, this.updateCopy); | ||
document.addEventListener('mousemove', this.handleMouseOrTouchMove); | ||
document.addEventListener('mouseup', this.handleMouseUpOrTouchEnd, { | ||
once: true, | ||
}); | ||
document.addEventListener('mouseup', this.handleMouseUpOrTouchEnd); | ||
document.addEventListener('touchmove', this.handleMouseOrTouchMove, { | ||
passive: false, | ||
}); | ||
document.addEventListener('touchend', this.handleMouseUpOrTouchEnd, { | ||
once: true, | ||
}); | ||
document.addEventListener('touchend', this.handleMouseUpOrTouchEnd); | ||
} | ||
@@ -334,0 +332,0 @@ timePointsPerPixel() { |
{ | ||
"name": "@schedule-x/drag-and-drop", | ||
"umdName": "SXDragAndDrop", | ||
"version": "2.21.1", | ||
"version": "2.21.2", | ||
"description": "Drag & drop plugin for Schedule-X calendar", | ||
@@ -31,3 +31,3 @@ "author": { | ||
"homepage": "https://schedule-x.dev", | ||
"gitHead": "08c5e8f6e7ffcf3ed0c866d5a89a31b99bf75714" | ||
"gitHead": "ccdec7b27e1f203f894e398a145b7d0ed702f243" | ||
} |
176758
0.17%4519
-0.13%