質問編集履歴

1

if内に不要な条件残ってたので削除いたしました。

2018/11/16 06:04

投稿

opatani
opatani

スコア13

test CHANGED
File without changes
test CHANGED
@@ -84,7 +84,7 @@
84
84
 
85
85
  // 移動量の判定
86
86
 
87
- if (touchStartY > touchMoveY && $('body').hasClass('scrollCan') && !$(sceneLast).hasClass('sceneNow')) {
87
+ if (touchStartY > touchMoveY) {
88
88
 
89
89
  if (touchStartY > (touchMoveY + 50)) {
90
90
 
@@ -92,7 +92,7 @@
92
92
 
93
93
  }
94
94
 
95
- } else if (touchStartY < touchMoveY && $('body').hasClass('scrollCan') && !$(sceneFirst).hasClass('sceneNow')) {
95
+ } else if (touchStartY < touchMoveY) {
96
96
 
97
97
  if ((touchStartY + 50) < touchMoveY) {
98
98