common-game
Advanced tools
Comparing version 0.0.14 to 0.0.15
{ | ||
"name": "common-game", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "common-game.js", |
@@ -63,7 +63,10 @@ import * as PIXI from "@tbminiapp/pixi-miniprogram-engine"; | ||
let x = e.data.global.x, y = e.data.global.y; | ||
let moveX = x - startPoint.x; | ||
let moveY = y - startPoint.y; | ||
e.moveV = { x: moveX, y: moveY }; | ||
if (callback) { callback("move", e); } | ||
if (!(isNaN(x) || isNaN(y))) { | ||
let moveX = x - startPoint.x; | ||
let moveY = y - startPoint.y; | ||
e.moveV = { x: moveX, y: moveY }; | ||
if (callback) { callback("move", e); } | ||
} | ||
}) | ||
@@ -70,0 +73,0 @@ .on('touchend', (e) => { |
42790
1210