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

@nosferatu500/react-dnd-scrollzone

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nosferatu500/react-dnd-scrollzone - npm Package Compare versions

Comparing version 2.0.0-beta.1 to 2.0.0

19

esm/index.js

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

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