Revert "feat: vibrate"

This reverts commit 33bc465182.
あまり気持ちよくないのでやめる
This commit is contained in:
Nebel 2020-12-29 19:53:26 +09:00
parent 87e6bd8670
commit 290d3dda6c

View file

@ -36,10 +36,6 @@ function render() {
renderer.render(scene, camera); renderer.render(scene, camera);
} }
function vibrate() {
if ("vibrate" in navigator) navigator.vibrate(100);
}
function tone(osc: Oscillator) { function tone(osc: Oscillator) {
osc.start(); osc.start();
osc.stop("+0.05"); osc.stop("+0.05");
@ -50,7 +46,6 @@ function drawRect() {
const [intersect] = raycaster.intersectObjects(panels); const [intersect] = raycaster.intersectObjects(panels);
if (!intersect) return; if (!intersect) return;
vibrate();
try { try {
// FIXME: Error: Start time must be strictly greater than previous start time. // FIXME: Error: Start time must be strictly greater than previous start time.
tone(intersect.object.userData.osc); tone(intersect.object.userData.osc);