mirror of https://github.com/vector-im/riot-web
parent
5f3b03c85a
commit
e61e7f2626
|
@ -4,9 +4,7 @@ const Velocity = require('velocity-vector');
|
||||||
// We only use easeOutBounce (easeInBounce is just sort of nonsensical)
|
// We only use easeOutBounce (easeInBounce is just sort of nonsensical)
|
||||||
function bounce( p ) {
|
function bounce( p ) {
|
||||||
let pow2;
|
let pow2;
|
||||||
|
let bounce = 4;
|
||||||
|
|
||||||
let bounce = 4;
|
|
||||||
|
|
||||||
while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {
|
while ( p < ( ( pow2 = Math.pow( 2, --bounce ) ) - 1 ) / 11 ) {
|
||||||
// just sets pow2
|
// just sets pow2
|
||||||
|
|
Loading…
Reference in New Issue