svelte-dnd-action
Advanced tools
Comparing version 0.2.9 to 0.2.10
@@ -802,3 +802,3 @@ (function (global, factory) { | ||
currentMousePosition = {x: c.clientX, y: c.clientY}; | ||
if(Math.abs(currentMousePosition.x - dragStartMousePosition.x) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX || Math.abs(currentMousePosition.y - dragStartMousePosition.y) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX) { | ||
if (Math.abs(currentMousePosition.x - dragStartMousePosition.x) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX || Math.abs(currentMousePosition.y - dragStartMousePosition.y) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX) { | ||
removeMaybeListeners(); | ||
@@ -809,2 +809,6 @@ handleDragStart(); | ||
function handleMouseDown(e) { | ||
if (isWorkingOnPreviousDrag) { | ||
console.debug('cannot start a new drag before finalizing previous one'); | ||
return; | ||
} | ||
e.stopPropagation(); | ||
@@ -820,6 +824,2 @@ const c = e.touches? e.touches[0] : e; | ||
console.debug('drag start', originalDragTarget, {config}); | ||
if (isWorkingOnPreviousDrag) { | ||
console.debug('cannot start a new drag before finalizing previous one'); | ||
return; | ||
} | ||
isWorkingOnPreviousDrag = true; | ||
@@ -826,0 +826,0 @@ |
@@ -33,3 +33,3 @@ { | ||
"description": "*An awesome drag and drop library for Svelte 3 (not using the browser's built-in dnd, thanks god): Rich animations, nested containers, touch support and more *", | ||
"version": "0.2.9", | ||
"version": "0.2.10", | ||
"dependencies": { | ||
@@ -36,0 +36,0 @@ "acorn": "^7.1.1", |
@@ -261,3 +261,3 @@ import { observe, unobserve } from './helpers/observer'; | ||
currentMousePosition = {x: c.clientX, y: c.clientY}; | ||
if(Math.abs(currentMousePosition.x - dragStartMousePosition.x) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX || Math.abs(currentMousePosition.y - dragStartMousePosition.y) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX) { | ||
if (Math.abs(currentMousePosition.x - dragStartMousePosition.x) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX || Math.abs(currentMousePosition.y - dragStartMousePosition.y) >= MIN_MOVEMENT_BEFORE_DRAG_START_PX) { | ||
removeMaybeListeners(); | ||
@@ -268,2 +268,6 @@ handleDragStart(originalDragTarget); | ||
function handleMouseDown(e) { | ||
if (isWorkingOnPreviousDrag) { | ||
console.debug('cannot start a new drag before finalizing previous one'); | ||
return; | ||
} | ||
e.stopPropagation(); | ||
@@ -279,6 +283,2 @@ const c = e.touches? e.touches[0] : e; | ||
console.debug('drag start', originalDragTarget, {config}); | ||
if (isWorkingOnPreviousDrag) { | ||
console.debug('cannot start a new drag before finalizing previous one'); | ||
return; | ||
} | ||
isWorkingOnPreviousDrag = true; | ||
@@ -285,0 +285,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125973