diff options
Diffstat (limited to 'client/index.js')
| -rw-r--r-- | client/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/index.js b/client/index.js index 2ff739d..75dc612 100644 --- a/client/index.js +++ b/client/index.js @@ -63,7 +63,7 @@ mouse.register({ draw.triangle(x, y, isMobile ? Math.min(window.innerWidth, window.innerHeight) / 2 : 400) }, move: (x, y, dx, dy) => { - let count = Math.abs(dx + dy) / (isMobile ? 5 : 40) + let count = (Math.abs(dx) + Math.abs(dy)) / (isMobile ? 1 : 40) if (count < 1) return count = clamp(count, 1, 10) if (Math.abs(dx) + Math.abs(dy) > 100) { |
