summaryrefslogtreecommitdiff
path: root/bundle.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-02-21 14:56:38 +0100
committerJules Laplace <julescarbon@gmail.com>2018-02-21 14:56:38 +0100
commit621c289ad5aa7a0cd5e46485542cff43eb1f7620 (patch)
tree2ac6ab5aa3858854d2d4805117271a5eb5b74e5b /bundle.js
parent30c73e04f6d60955f68ef0e93176a6ebc24ef40f (diff)
etc
Diffstat (limited to 'bundle.js')
-rw-r--r--bundle.js4
1 files changed, 2 insertions, 2 deletions
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,