Skip to content

Commit 658be37

Browse files
committed
try faster
1 parent b8f9e5d commit 658be37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04-Breakout-Game/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function actionMove(e){
337337
//判断是鼠标左键点击还是触摸
338338
if(touchXstart != null){
339339
if(e.touches ){//如果是触摸 dist等于第一个touch点的x坐标x相对touchXstart的移动距离
340-
dist =( e.touches[0].pageX - touchXstart)*2;
340+
dist =( e.touches[0].pageX - touchXstart)*4;
341341
}else{//如果是鼠标 dist等于鼠标的x坐标x相对touchXstart的移动距离
342342
dist = e.pageX - touchXstart;
343343
}

0 commit comments

Comments
 (0)