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

react-with-gesture

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-with-gesture - npm Package Compare versions

Comparing version 4.0.6 to 4.0.7

17

dist/react-with-gesture.es.js

@@ -40,2 +40,3 @@ import React from 'react';

var defaultProps = {
window: window,
touch: true,

@@ -173,9 +174,9 @@ mouse: true,

if (props.mouse) {
window.addEventListener(mouseMove, handleMove, props.passive);
window.addEventListener(mouseUp, onUp, props.passive);
props.window.addEventListener(mouseMove, handleMove, props.passive);
props.window.addEventListener(mouseUp, onUp, props.passive);
}
if (props.touch) {
window.addEventListener(touchMove, handleMove, props.passive);
window.addEventListener(touchEnd, onUp, props.passive);
props.window.addEventListener(touchMove, handleMove, props.passive);
props.window.addEventListener(touchEnd, onUp, props.passive);
}

@@ -188,9 +189,9 @@

if (props.mouse) {
window.removeEventListener(mouseMove, handleMove, props.passive);
window.removeEventListener(mouseUp, onUp, props.passive);
props.window.removeEventListener(mouseMove, handleMove, props.passive);
props.window.removeEventListener(mouseUp, onUp, props.passive);
}
if (props.touch) {
window.removeEventListener(touchMove, handleMove, props.passive);
window.removeEventListener(touchEnd, onUp, props.passive);
props.window.removeEventListener(touchMove, handleMove, props.passive);
props.window.removeEventListener(touchEnd, onUp, props.passive);
}

@@ -197,0 +198,0 @@ };

@@ -46,2 +46,3 @@ 'use strict';

var defaultProps = {
window: window,
touch: true,

@@ -179,9 +180,9 @@ mouse: true,

if (props.mouse) {
window.addEventListener(mouseMove, handleMove, props.passive);
window.addEventListener(mouseUp, onUp, props.passive);
props.window.addEventListener(mouseMove, handleMove, props.passive);
props.window.addEventListener(mouseUp, onUp, props.passive);
}
if (props.touch) {
window.addEventListener(touchMove, handleMove, props.passive);
window.addEventListener(touchEnd, onUp, props.passive);
props.window.addEventListener(touchMove, handleMove, props.passive);
props.window.addEventListener(touchEnd, onUp, props.passive);
}

@@ -194,9 +195,9 @@

if (props.mouse) {
window.removeEventListener(mouseMove, handleMove, props.passive);
window.removeEventListener(mouseUp, onUp, props.passive);
props.window.removeEventListener(mouseMove, handleMove, props.passive);
props.window.removeEventListener(mouseUp, onUp, props.passive);
}
if (props.touch) {
window.removeEventListener(touchMove, handleMove, props.passive);
window.removeEventListener(touchEnd, onUp, props.passive);
props.window.removeEventListener(touchMove, handleMove, props.passive);
props.window.removeEventListener(touchEnd, onUp, props.passive);
}

@@ -203,0 +204,0 @@ };

@@ -9,2 +9,3 @@ import React from 'react'

const defaultProps = {
window,
touch: true,

@@ -118,8 +119,8 @@ mouse: true,

if (props.mouse) {
window.addEventListener(mouseMove, handleMove, props.passive)
window.addEventListener(mouseUp, onUp, props.passive)
props.window.addEventListener(mouseMove, handleMove, props.passive)
props.window.addEventListener(mouseUp, onUp, props.passive)
}
if (props.touch) {
window.addEventListener(touchMove, handleMove, props.passive)
window.addEventListener(touchEnd, onUp, props.passive)
props.window.addEventListener(touchMove, handleMove, props.passive)
props.window.addEventListener(touchEnd, onUp, props.passive)
}

@@ -132,8 +133,8 @@

if (props.mouse) {
window.removeEventListener(mouseMove, handleMove, props.passive)
window.removeEventListener(mouseUp, onUp, props.passive)
props.window.removeEventListener(mouseMove, handleMove, props.passive)
props.window.removeEventListener(mouseUp, onUp, props.passive)
}
if (props.touch) {
window.removeEventListener(touchMove, handleMove, props.passive)
window.removeEventListener(touchEnd, onUp, props.passive)
props.window.removeEventListener(touchMove, handleMove, props.passive)
props.window.removeEventListener(touchEnd, onUp, props.passive)
}

@@ -140,0 +141,0 @@ }

{
"name": "react-with-gesture",
"version": "4.0.6",
"version": "4.0.7",
"description": "hoc for receiving gestures",

@@ -5,0 +5,0 @@ "main": "dist/react-with-gesture",

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