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.7 to 4.0.8

17

dist/react-with-gesture.es.js

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

const defaultProps = {
window,
touch: true,

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

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

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

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

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

{
"name": "react-with-gesture",
"version": "4.0.7",
"version": "4.0.8",
"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