phy-scroll - publish v1.0.3

This commit is contained in:
dntzhang 2019-07-01 16:02:23 +08:00
parent 47eed24d7a
commit 7f10166637
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* phy-scroll v1.0.2
/* phy-scroll v1.0.3
* By dntzhang https://github.com/dntzhang
* Github: https://github.com/Tencent/omi/tree/master/packages/phy-scroll
* MIT Licensed.
@ -402,13 +402,13 @@
if (result > this.max) result = this.max;
if (result < this.min) result = this.min;
this.to(result, time, ease);
this.index = rpt + 1
this.index = (value < 0 ? -1 : 1) * (rpt + 1)
} else {
result = (value < 0 ? -1 : 1) * rpt * this.step;
if (result > this.max) result = this.max;
if (result < this.min) result = this.min;
this.to(result, time, ease);
this.index = rpt
this.index = (value < 0 ? -1 : 1) * rpt
}
},
destroy: function () {

View File

@ -1,6 +1,6 @@
{
"name": "phy-scroll",
"version": "1.0.2",
"version": "1.0.3",
"description": "Physical scroll.",
"main": "index.js",
"scripts": {