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.1.1 to 0.1.2

9

dist/index.js

@@ -622,5 +622,3 @@ (function (global, factory) {

function handleMouseMove(e) {
if (!draggedEl) {
return;
}
e.preventDefault();
const c = e.touches? e.touches[0] : e;

@@ -722,3 +720,3 @@ currentMousePosition = {x: c.clientX, y: c.clientY};

window.addEventListener('mousemove', handleMouseMoveMaybeDragStart, {passive: false});
window.addEventListener('touchmove', handleMouseMoveMaybeDragStart, {passive: false});
window.addEventListener('touchmove', handleMouseMoveMaybeDragStart, {passive: false, capture: false});
window.addEventListener('mouseup', handleFalseAlarm, {passive: false});

@@ -741,2 +739,3 @@ window.addEventListener('touchend', handleFalseAlarm, {passive: false});

function handleMouseMoveMaybeDragStart(e) {
e.preventDefault();
const c = e.touches? e.touches[0] : e;

@@ -786,3 +785,3 @@ currentMousePosition = {x: c.clientX, y: c.clientY};

window.addEventListener('mousemove', handleMouseMove, {passive: false});
window.addEventListener('touchmove', handleMouseMove, {passive: false});
window.addEventListener('touchmove', handleMouseMove, {passive: false, capture: false});
window.addEventListener('mouseup', handleDrop, {passive: false});

@@ -789,0 +788,0 @@ window.addEventListener('touchend', handleDrop, {passive: false});

@@ -33,3 +33,3 @@ {

"description": "*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.1.1",
"version": "0.1.2",
"dependencies": {

@@ -36,0 +36,0 @@ "acorn": "^7.1.1",

@@ -110,5 +110,3 @@ import { observe, unobserve } from './helpers/observer';

function handleMouseMove(e) {
if (!draggedEl) {
return;
}
e.preventDefault();
const c = e.touches? e.touches[0] : e;

@@ -210,3 +208,3 @@ currentMousePosition = {x: c.clientX, y: c.clientY};

window.addEventListener('mousemove', handleMouseMoveMaybeDragStart, {passive: false});
window.addEventListener('touchmove', handleMouseMoveMaybeDragStart, {passive: false});
window.addEventListener('touchmove', handleMouseMoveMaybeDragStart, {passive: false, capture: false});
window.addEventListener('mouseup', handleFalseAlarm, {passive: false});

@@ -229,2 +227,3 @@ window.addEventListener('touchend', handleFalseAlarm, {passive: false});

function handleMouseMoveMaybeDragStart(e) {
e.preventDefault();
const c = e.touches? e.touches[0] : e;

@@ -274,3 +273,3 @@ currentMousePosition = {x: c.clientX, y: c.clientY};

window.addEventListener('mousemove', handleMouseMove, {passive: false});
window.addEventListener('touchmove', handleMouseMove, {passive: false});
window.addEventListener('touchmove', handleMouseMove, {passive: false, capture: false});
window.addEventListener('mouseup', handleDrop, {passive: false});

@@ -277,0 +276,0 @@ window.addEventListener('touchend', handleDrop, {passive: false});

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