rc-touchable
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -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; |
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68034
1541