From 621c289ad5aa7a0cd5e46485542cff43eb1f7620 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 21 Feb 2018 14:56:38 +0100 Subject: etc --- bundle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bundle.js') diff --git a/bundle.js b/bundle.js index 09efd36..1d38c75 100644 --- a/bundle.js +++ b/bundle.js @@ -24443,7 +24443,7 @@ _mouse2.default.register({ down: function down(x, y) { samplers['smash'].play((0, _util.randrange)(90, 150) + 50 * (x / window.innerWidth + y / window.innerHeight), 0); _draw2.default.clear(); - _draw2.default.triangle(x, y, 400); + _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); @@ -24452,7 +24452,7 @@ _mouse2.default.register({ if (Math.abs(dx) + Math.abs(dy) > 100) { samplers['smash'].play((0, _util.randrange)(50, 300) + 100 * (x / window.innerWidth + y / window.innerHeight), 0); _draw2.default.clear(); - _draw2.default.triangle(x, y, 500); + _draw2.default.triangle(x, y, _util.isMobile ? Math.min(window.innerWidth, window.innerHeight) / 2 : 500); } var now = _tone2.default.now(); var when = void 0, -- cgit v1.2.3-70-g09d2