diff options
Diffstat (limited to 'bundle.js')
| -rw-r--r-- | bundle.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |
