mdn/webaudio-examples

Add support for touch events to violent theremin demo

开放

#126 创建于 2021年1月18日

 (6 条评论) (1 个反应) (0 位负责人)HTML (419 个派生)batch import
accepting PRhelp wanted

仓库指标

星标
 (1,114 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

@normanr commented on Wed Dec 02 2020

It would be nice to be able to use the demo in a touch environment (eg: phone or tablet). (Not required: sound could be continuous after a 'start/down' event until an 'end/up' event is received)


@chrisdavidmills commented on Wed Dec 02 2020

I agree that this would be nice.

For reference:


@normanr commented on Wed Dec 02 2020

(side-note: the event listeners for triggering init should be removed in init, otherwise using the keyboard causes init to be triggered multi times, and DOMExceptions when trying to remove the startMessage that has already been removed).

贡献者指南