react-native-scroller
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -87,2 +87,4 @@ 'use strict'; | ||
constructor(flywheel, onScrollCallback) { | ||
this.mCurrX = 0; | ||
this.mCurrY = 0; | ||
this.mFinished = true; | ||
@@ -175,4 +177,4 @@ this.mInterpolator = ViscousFluidInterpolator; | ||
// Pin to mMinX <= mCurrX <= mMaxX | ||
this.mCurrX = Math.min(this.mCurrX, this.mMaxX); | ||
this.mCurrX = Math.max(this.mCurrX, this.mMinX); | ||
//this.mCurrX = Math.min(this.mCurrX, this.mMaxX); | ||
//this.mCurrX = Math.max(this.mCurrX, this.mMinX); | ||
@@ -355,4 +357,4 @@ this.mCurrY = this.mStartY + Math.round(distanceCoef * (this.mFinalY - this.mStartY)); | ||
debugInfo() { | ||
return 'cur=' + this.mCurrX + ' ' + this.mCurrY; | ||
return 'cur=' + this.mCurrX + ' ' + this.mCurrY + ', final=' + this.mFinalX + ' ' + this.mFinalY; | ||
} | ||
} |
{ | ||
"name": "react-native-scroller", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "library/Scroller.js", |
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
11441
325