Decrease speed of buttons
This commit is contained in:
parent
385551a510
commit
a37e1a52e4
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ let endTime = performance.now();
|
||||||
let unit = 88;
|
let unit = 88;
|
||||||
let gap = 8;
|
let gap = 8;
|
||||||
let scrollX = (unit + gap) * buttons.length * 2;
|
let scrollX = (unit + gap) * buttons.length * 2;
|
||||||
let speed = 50;
|
let speed = 25;
|
||||||
let max = (unit + gap) * buttons.length;
|
let max = (unit + gap) * buttons.length;
|
||||||
function scrollButtons(startTime) {
|
function scrollButtons(startTime) {
|
||||||
let deltaTime = (startTime - endTime) / 1000;
|
let deltaTime = (startTime - endTime) / 1000;
|
||||||
|
|
Loading…
Reference in a new issue