From 290d3dda6cd4bc67af69eccd154ac01feebc6753 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 29 Dec 2020 19:53:26 +0900 Subject: [PATCH] Revert "feat: vibrate" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 33bc465182a14ddf7b01b8bf4227dbba0938c398. あまり気持ちよくないのでやめる --- src/main.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index f18758c..c50839b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -36,10 +36,6 @@ function render() { renderer.render(scene, camera); } -function vibrate() { - if ("vibrate" in navigator) navigator.vibrate(100); -} - function tone(osc: Oscillator) { osc.start(); osc.stop("+0.05"); @@ -50,7 +46,6 @@ function drawRect() { const [intersect] = raycaster.intersectObjects(panels); if (!intersect) return; - vibrate(); try { // FIXME: Error: Start time must be strictly greater than previous start time. tone(intersect.object.userData.osc);