Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-dnd-action

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-dnd-action - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

10

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc