summaryrefslogtreecommitdiff
path: root/bundle.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-02-21 15:29:20 +0100
committerJules Laplace <julescarbon@gmail.com>2018-02-21 15:29:20 +0100
commitc5d09fb560580403bb248146dd375dd7af14dff8 (patch)
tree5e7bfcda30d8c626e918ca525db53dabdec8fc48 /bundle.js
parent77c6da0f221c210bb801b5f6415f1a999be37b5d (diff)
yea
Diffstat (limited to 'bundle.js')
-rw-r--r--bundle.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundle.js b/bundle.js
index cb0728f..733c66d 100644
--- a/bundle.js
+++ b/bundle.js
@@ -24446,7 +24446,7 @@ _mouse2.default.register({
_draw2.default.triangle(x, y, _util.isMobile ? Math.min(window.innerWidth, window.innerHeight) / 2 : 400);
},
move: function move(x, y, dx, dy) {
- var count = Math.abs(dx + dy) / (_util.isMobile ? 5 : 40);
+ var count = (Math.abs(dx) + Math.abs(dy)) / (_util.isMobile ? 1 : 40);
if (count < 1) return;
count = (0, _util.clamp)(count, 1, 10);
if (Math.abs(dx) + Math.abs(dy) > 100) {