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

rc-touchable

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-touchable - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

es/index.d.ts

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

lockMouse: any;
shouldActive: Boolean;
pressInLocation: {

@@ -69,2 +70,3 @@ pageX: number;

_remeasureMetricsOnInit(e: any): void;
processActiveStopPropagation(e: any): void;
touchableHandleResponderGrant(e: any): void;

@@ -71,0 +73,0 @@ checkScroll(e: any): boolean;

16

es/index.js

@@ -327,2 +327,11 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

}, {
key: 'processActiveStopPropagation',
value: function processActiveStopPropagation(e) {
var nativeEvent = e.nativeEvent || e;
this.shouldActive = !nativeEvent.__activeStopPropagation;
if (this.props.activeStopPropagation) {
nativeEvent.__activeStopPropagation = 1;
}
}
}, {
key: 'touchableHandleResponderGrant',

@@ -346,2 +355,3 @@ value: function touchableHandleResponderGrant(e) {

this.processActiveStopPropagation(e);
if (delayMS) {

@@ -429,9 +439,5 @@ this.touchableDelayTimeout = setTimeout(function () {

value: function touchableHandleActivePressIn(e) {
var nativeEvent = e.nativeEvent || e;
if (!nativeEvent.__activeStopPropagation) {
if (this.shouldActive) {
this.setActive(true);
}
if (this.props.activeStopPropagation) {
nativeEvent.__activeStopPropagation = 1;
}
this.callProp('onPressIn', e);

@@ -438,0 +444,0 @@ }

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

lockMouse: any;
shouldActive: Boolean;
pressInLocation: {

@@ -69,2 +70,3 @@ pageX: number;

_remeasureMetricsOnInit(e: any): void;
processActiveStopPropagation(e: any): void;
touchableHandleResponderGrant(e: any): void;

@@ -71,0 +73,0 @@ checkScroll(e: any): boolean;

@@ -344,2 +344,11 @@ 'use strict';

}, {
key: 'processActiveStopPropagation',
value: function processActiveStopPropagation(e) {
var nativeEvent = e.nativeEvent || e;
this.shouldActive = !nativeEvent.__activeStopPropagation;
if (this.props.activeStopPropagation) {
nativeEvent.__activeStopPropagation = 1;
}
}
}, {
key: 'touchableHandleResponderGrant',

@@ -363,2 +372,3 @@ value: function touchableHandleResponderGrant(e) {

this.processActiveStopPropagation(e);
if (delayMS) {

@@ -446,9 +456,5 @@ this.touchableDelayTimeout = setTimeout(function () {

value: function touchableHandleActivePressIn(e) {
var nativeEvent = e.nativeEvent || e;
if (!nativeEvent.__activeStopPropagation) {
if (this.shouldActive) {
this.setActive(true);
}
if (this.props.activeStopPropagation) {
nativeEvent.__activeStopPropagation = 1;
}
this.callProp('onPressIn', e);

@@ -455,0 +461,0 @@ }

{
"name": "rc-touchable",
"version": "1.3.1",
"version": "1.3.2",
"description": "React Touchable Component",

@@ -5,0 +5,0 @@ "keywords": [

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