回答編集履歴

1

修正

2021/05/07 14:09

投稿

Jon_do
Jon_do

スコア1373

test CHANGED
@@ -198,6 +198,8 @@
198
198
 
199
199
  let timer = null;
200
200
 
201
+ const boxLen = box.length;
202
+
201
203
 
202
204
 
203
205
  window.addEventListener("wheel",(e)=>{
@@ -218,8 +220,6 @@
218
220
 
219
221
  const changeBoxUp = () => {
220
222
 
221
- const boxLen = box.length;
222
-
223
223
  for(let i = 0; i < boxLen; i++){
224
224
 
225
225
  if(i == boxLen - 1) {
@@ -246,7 +246,7 @@
246
246
 
247
247
  const changeBoxDown = () => {
248
248
 
249
- const boxLen = box.length;
249
+
250
250
 
251
251
  for(let i = 0; i < boxLen; i++){
252
252