rc-hammerjs
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -94,3 +94,3 @@ 'use strict'; | ||
if (directionProp || props.hasOwnProperty('vertical')) { | ||
direction = directionProp ? directionProp : props.vertical ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL'; | ||
var direction = directionProp ? directionProp : props.vertical ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL'; | ||
hammer.get('pan').set({ direction: _hammerjs2['default'][direction] }); | ||
@@ -97,0 +97,0 @@ hammer.get('swipe').set({ direction: _hammerjs2['default'][direction] }); |
@@ -94,3 +94,3 @@ 'use strict'; | ||
if (directionProp || props.hasOwnProperty('vertical')) { | ||
direction = directionProp ? directionProp : props.vertical ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL'; | ||
var direction = directionProp ? directionProp : props.vertical ? 'DIRECTION_ALL' : 'DIRECTION_HORIZONTAL'; | ||
hammer.get('pan').set({ direction: _hammerjs2['default'][direction] }); | ||
@@ -97,0 +97,0 @@ hammer.get('swipe').set({ direction: _hammerjs2['default'][direction] }); |
{ | ||
"name": "rc-hammerjs", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"description": "ReactJS / HammerJS integration. Support touch events in your React app.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -17,3 +17,3 @@ rc-hammerjs | ||
``` | ||
npm install react-hammerjs --save | ||
npm install rc-hammerjs --save | ||
``` | ||
@@ -60,3 +60,3 @@ | ||
``` | ||
var Hammer = require('react-hammerjs'); | ||
var Hammer = require('rc-hammerjs'); | ||
@@ -63,0 +63,0 @@ // Default options |
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
16019