@nosferatu500/react-dnd-scrollzone
Advanced tools
Comparing version 2.0.0-beta.1 to 2.0.0
@@ -6,12 +6,2 @@ import React, { createRef, useEffect } from 'react'; | ||
const noop = () => { | ||
}; | ||
const intBetween = (min, max, val) => Math.floor(Math.min(max, Math.max(min, val))); | ||
const getCoords = (evt) => { | ||
if (evt.type === "touchmove") { | ||
return { x: evt.changedTouches[0].clientX, y: evt.changedTouches[0].clientY }; | ||
} | ||
return { x: evt.clientX, y: evt.clientY }; | ||
}; | ||
var __defProp = Object.defineProperty; | ||
@@ -48,2 +38,11 @@ var __defProps = Object.defineProperties; | ||
}; | ||
const noop = () => { | ||
}; | ||
const intBetween = (min, max, val) => Math.floor(Math.min(max, Math.max(min, val))); | ||
const getCoords = (evt) => { | ||
if (evt.type === "touchmove") { | ||
return { x: evt.changedTouches[0].clientX, y: evt.changedTouches[0].clientY }; | ||
} | ||
return { x: evt.clientX, y: evt.clientY }; | ||
}; | ||
const DEFAULT_BUFFER = 150; | ||
@@ -50,0 +49,0 @@ const createHorizontalStrength = (_buffer) => ({ |
@@ -49,6 +49,10 @@ 'use strict'; | ||
var _excluded = ["strengthMultiplier", "verticalStrength", "horizontalStrength", "onScrollChange"]; | ||
var noop = function noop() {}; | ||
var intBetween = function intBetween(min, max, val) { | ||
return Math.floor(Math.min(max, Math.max(min, val))); | ||
}; | ||
var getCoords = function getCoords(evt) { | ||
@@ -68,3 +72,2 @@ if (evt.type === 'touchmove') { | ||
var _excluded = ["strengthMultiplier", "verticalStrength", "horizontalStrength", "onScrollChange"]; | ||
var DEFAULT_BUFFER = 150; | ||
@@ -71,0 +74,0 @@ var createHorizontalStrength = function createHorizontalStrength(_buffer) { |
{ | ||
"name": "@nosferatu500/react-dnd-scrollzone", | ||
"version": "2.0.0-beta.1", | ||
"version": "2.0.0", | ||
"description": "A cross browser solution to scrolling during drag and drop.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
26408
8
495