Update life.js

This commit is contained in:
Kyle
2019-08-16 18:07:39 -07:00
parent f4c583c01e
commit e367adf43a

View File

@@ -259,6 +259,7 @@ function startTouch() {
singleTap(event.changedTouches[0].target) singleTap(event.changedTouches[0].target)
} }
function moveTouch() { function moveTouch() {
window.scrollTo(0, 0);
touchX = [], touchY = [] touchX = [], touchY = []
for (var i = 0; i < event.touches.length; i ++) { for (var i = 0; i < event.touches.length; i ++) {
touchX[i] = event.touches[i].clientX touchX[i] = event.touches[i].clientX