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

@uiw/react-drag-event-interactive

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/react-drag-event-interactive - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

3

cjs/index.js

@@ -97,3 +97,2 @@ "use strict";

Interactive.displayName = 'Interactive';
var _default = Interactive;
exports["default"] = _default;
var _default = exports["default"] = Interactive;

@@ -21,3 +21,3 @@ "use strict";

// Check if an event was triggered by touch
var isTouch = function isTouch(event) {
var isTouch = exports.isTouch = function isTouch(event) {
return 'touches' in event;

@@ -29,4 +29,3 @@ };

// https://github.com/facebook/react/issues/19651
exports.isTouch = isTouch;
var preventDefaultMove = function preventDefaultMove(event) {
var preventDefaultMove = exports.preventDefaultMove = function preventDefaultMove(event) {
!isTouch(event) && event.preventDefault && event.preventDefault();

@@ -37,4 +36,3 @@ };

// 2 times shorter then `Math.min(Math.max(a,b),c)`
exports.preventDefaultMove = preventDefaultMove;
var clamp = function clamp(number) {
var clamp = exports.clamp = function clamp(number) {
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;

@@ -44,5 +42,4 @@ var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;

};
exports.clamp = clamp;
// Returns a relative position of the pointer inside the node's bounding box
var getRelativePosition = function getRelativePosition(node, event) {
var getRelativePosition = exports.getRelativePosition = function getRelativePosition(node, event) {
var rect = node.getBoundingClientRect();

@@ -60,3 +57,2 @@

};
};
exports.getRelativePosition = getRelativePosition;
};
{
"name": "@uiw/react-drag-event-interactive",
"version": "1.4.2",
"version": "1.4.3",
"description": "react drag event interactive",

@@ -5,0 +5,0 @@ "homepage": "https://uiwjs.github.io/react-color/#/drag-event-interactive",

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