svelte-dnd-action
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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
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
108795
2323