knockout-dragdrop
Advanced tools
@@ -319,3 +319,3 @@ /*global ko*/ | ||
| if (activeZone === '') { | ||
| this.updateZone('center'); | ||
| activeZone = 'center'; | ||
| } | ||
@@ -467,2 +467,6 @@ | ||
| if (typeof options.longTapDelay === 'undefined') { | ||
| options.longTapDelay = 500; | ||
| } | ||
| function createCloneProxyElement() { | ||
@@ -681,3 +685,3 @@ var dragProxy = element.cloneNode(true); | ||
| startDragging(downEvent); | ||
| }, 500); | ||
| }, ko.unwrap(options.longTapDelay)); | ||
| } | ||
@@ -716,6 +720,7 @@ | ||
| var options = ko.utils.unwrapObservable(valueAccessor()); | ||
| if (typeof options === 'string') { | ||
| options = { name: options }; | ||
| if (typeof options === 'string' || Array.isArray(options)) { | ||
| options = { accepts: options }; | ||
| } | ||
| options.delay = options.delay || 0; | ||
| var accepts = getAcceptedDragZones(options); | ||
@@ -745,3 +750,3 @@ var scrollArea = null; | ||
| return { | ||
| name: options.name, | ||
| accepts: accepts, | ||
| dragEnter: dragEnter, | ||
@@ -748,0 +753,0 @@ dragOver: dragOver, |
+1
-1
| { | ||
| "name": "knockout-dragdrop", | ||
| "description": "A drag and drop binding for Knockout", | ||
| "version": "2.3.0", | ||
| "version": "2.4.0", | ||
| "keywords": [ | ||
@@ -6,0 +6,0 @@ "drag and drop" |
56056
0.44%956
0.42%