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 2.0.0 to 2.0.1

6

dist/react-with-gesture.es.js

@@ -76,3 +76,3 @@ import React from 'react';

props.onUp && props.onUp(newProps);
props.onAction && props.onAction(newProps);
return newProps;

@@ -100,3 +100,3 @@ });

props.onDown && props.onDown(newProps);
props.onAction && props.onAction(newProps);
return newProps;

@@ -123,3 +123,3 @@ });

props.onMove && props.onMove(newProps);
props.onAction && props.onAction(newProps);
return newProps;

@@ -126,0 +126,0 @@ });

@@ -82,3 +82,3 @@ 'use strict';

props.onUp && props.onUp(newProps);
props.onAction && props.onAction(newProps);
return newProps;

@@ -106,3 +106,3 @@ });

props.onDown && props.onDown(newProps);
props.onAction && props.onAction(newProps);
return newProps;

@@ -129,3 +129,3 @@ });

props.onMove && props.onMove(newProps);
props.onAction && props.onAction(newProps);
return newProps;

@@ -132,0 +132,0 @@ });

{
"name": "react-with-gesture",
"version": "2.0.0",
"version": "2.0.1",
"description": "hoc for receiving gestures",

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

@@ -23,3 +23,3 @@ import React from 'react'

const newProps = { ...state, down: false }
props.onUp && props.onUp(newProps)
props.onAction && props.onAction(newProps)
return newProps

@@ -43,3 +43,3 @@ })

}
props.onDown && props.onDown(newProps)
props.onAction && props.onAction(newProps)
return newProps

@@ -60,3 +60,3 @@ })

}
props.onMove && props.onMove(newProps)
props.onAction && props.onAction(newProps)
return newProps

@@ -101,8 +101,4 @@ })

transient: PropTypes.bool,
/** Optional. Calls back on mouse-down or surface touched */
onDown: PropTypes.func,
/** Optional. Calls back on mouse-up or touch lifted */
onUp: PropTypes.func,
/** Optional. Calls back on mouse/touch move */
onMove: PropTypes.func,
/** Optional. Calls back on mouse or touch down/up/move */
onAction: PropTypes.func,
}

@@ -109,0 +105,0 @@ static defaultProps = { touch: true, mouse: true }

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