зеркало из https://github.com/mozilla/pjs.git
Bug 586621 follow-up: s/2/4/ as written in the reviewed patch
This commit is contained in:
Родитель
cff57d723a
Коммит
ccda11f111
|
@ -248,7 +248,7 @@
|
|||
handleEvent: function scrollAnim_handleEvent(event) {
|
||||
const timePassed = event.timeStamp - this.startTime;
|
||||
const pos = timePassed >= this.duration ? 1 :
|
||||
1 - Math.pow(1 - timePassed / this.duration, 2);
|
||||
1 - Math.pow(1 - timePassed / this.duration, 4);
|
||||
|
||||
this.scrollbox.scrollPosition = this.startPos + (this.distance * pos);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче